CN116305275A - Local file management method and device, storage medium and electronic equipment - Google Patents

Local file management method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116305275A
CN116305275A CN202310270733.6A CN202310270733A CN116305275A CN 116305275 A CN116305275 A CN 116305275A CN 202310270733 A CN202310270733 A CN 202310270733A CN 116305275 A CN116305275 A CN 116305275A
Authority
CN
China
Prior art keywords
file
target
information
target file
operation record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310270733.6A
Other languages
Chinese (zh)
Inventor
王雨微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202310270733.6A priority Critical patent/CN116305275A/en
Publication of CN116305275A publication Critical patent/CN116305275A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical fields of digital medical treatment, artificial intelligence and finance, and discloses a local file management method, a device, a medium and equipment. The method comprises the following steps: responding to the access operation of a user to a target file stored locally through a preset interface; performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to the operation processing process; storing an operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file; and searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on the target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information. The local file management method is safer and more reliable.

Description

Local file management method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical fields of intelligent medical technology, artificial intelligence and finance, in particular to a local file management method, a device, a storage medium and electronic equipment.
Background
With the continuous development of science and technology, most social workers are not separated from various documents in the computer, so that the management of the documents is very important. If no better tool is used for helping us to classify, manage and save files, the overall working efficiency is affected. How to effectively manage local common files is that many management tools are available to help to store files in a standardized manner, but most of the management tools store data in a cloud end, need to edit and store the cloud end online, or open a document collaboration tool through network connection or download a certain application for management, so that the management is not safe enough.
Disclosure of Invention
In view of the above, the present invention provides a local file management method, a device, a storage medium and an electronic apparatus, and aims to solve the problem that local file management is not secure at present.
In order to solve the above problems, the present application provides a local file management method, including:
responding to the access operation of a user to a target file stored locally through a preset interface;
Performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to an operation processing process;
storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
and searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
Optionally, before the operation processing is performed on the target file for the access operation request, and an operation record corresponding to an operation processing procedure is generated, the method further includes:
judging whether to perform access operation on the target file for the first time;
when the judgment result is that the first access operation is carried out on the target file, acquiring authentication prompt information corresponding to the access operation of the target file;
and carrying out authentication processing on the access operation based on the authentication prompt information to obtain an authentication result.
Optionally, the performing operation processing on the target file for the access request, and generating an operation record corresponding to an operation processing procedure specifically includes:
judging whether the target file exists locally or not, and obtaining a judging result;
and based on the judging result, operating the target file according to the access request according to a processing mode corresponding to the judging result, and generating an operation record corresponding to an operation processing process.
Optionally, based on the determination result, performing operation processing on the access request on the target file according to a processing mode corresponding to the determination result, and generating an operation record corresponding to an operation processing procedure, which specifically includes:
when the judging result is that the target file exists locally, viewing, modifying or deleting the target file based on the access request; generating an operation record corresponding to the viewing, modifying or deleting operation process;
when the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request;
and generating an operation record corresponding to the process of creating the target file.
Optionally, when the determination result is that the target file exists, viewing, modifying or deleting the target file based on the access request specifically includes:
when an access request is for viewing or modifying a target file, acquiring first target content corresponding to the target file based on a preset file retrieval method, and viewing or modifying the first target content;
and when the access request is to delete the target file, deleting the target file based on a preset file removing method.
Optionally, the searching the operation record queue information of each file corresponding to the target key information stored in the preset storage area and the file type classification queue information corresponding to the operation record queue information based on the target key information selected by the user specifically includes:
acquiring target key information corresponding to a preset time period selected by a user;
searching a preset storage area based on the target key information to acquire operation record information corresponding to the key information and file type information of each file corresponding to the operation record information;
and displaying the operation record information and the file type information in a queue form according to the operation time sequence corresponding to the target key information.
Optionally, when the judging result is that the target file does not exist, creating the target file through a preset rich text editor based on the access request specifically includes:
creating an object for writing second target content of the target file;
editing second target content corresponding to the target file by adopting a preset sentence, and writing the second target content into the object;
and storing the edited second target content based on a preset storage statement, and creating and obtaining the target file.
In order to solve the above-mentioned problems, the present application provides a local file management device, including:
the acquisition module is used for: the method comprises the steps of responding to access operation of a user to a target file stored locally through a preset interface;
and an operation module: the access operation is used for carrying out operation processing on the target file, and an operation record corresponding to an operation processing process is generated;
and a storage module: the operation record is used for storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
and a management module: and the file management system is used for searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on the target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
The present application provides a storage medium storing a computer program which, when executed by a processor, implements the steps of the local file management method described above.
In order to solve the above problems, the present application provides an electronic device, which at least includes a memory, and a processor, where the memory stores a computer program, and the processor implements the steps of the local file management method when executing the computer program on the memory.
The method comprises the steps of obtaining an access request of a user to a stored and local target file through a preset interface; performing operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process; storing the operation record in a preset storage area; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The HTML document of the local hypertext markup language file is opened through the preset browser, and the local file is operated through the preset interface, so that the management of the stored and local file is realized, and the method is safer and more reliable.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of a local file management method according to an embodiment of the present application;
FIG. 2 is a flowchart of a local file management method according to another embodiment of the present application;
fig. 3 is a block diagram of a local file management apparatus according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the present application has been described with reference to some specific examples, those skilled in the art can certainly realize many other equivalent forms of the present application.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
An embodiment of the present application provides a local file management method, as shown in fig. 1, including:
step S101: responding to the access operation of a user to a target file stored locally through a preset interface;
in the specific implementation process, in order to realize the management of the local file, the method and the device open the HTML document of the local hypertext markup language file by using a preset browser, and then call a preset interface to manage the local file. The interface may be a file system access interface (File System Access API) with local system file read, write, and file management functions. The application realizes the management of the local file based on the interface. The browser can be a 360-degree browser, a fire fox browser, an IE browser and the like, and the application can be applicable to various browsers. The method for opening the local file of the file system access interface can be used for directly accessing the local file or accessing the local file through the directory of the local disk which is acquired in advance. When a user accesses a target file for the first time, authentication prompt information of the target file is generated, and the user is allowed to operate the target file through a file system access API after the authentication is passed.
Step S102: performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to an operation processing process;
in the specific implementation process, when a user accesses a target file for the first time, authentication prompt information corresponding to the access operation of the target file is generated, and after authentication is successful, the operation authority of the target file is obtained, and operations such as checking, modifying, deleting and the like can be performed on the target file. And after the first authentication is successful, the authentication prompt is not carried out when the target file is operated again, and the target file can be directly operated. Specifically, firstly judging whether the target file exists locally or not, and when the judging result is that the target file exists locally, checking, modifying or deleting the target file based on the access request; generating an operation record corresponding to the viewing, modifying or deleting operation process; when the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request; and generating an operation record corresponding to the process of creating the target file. And a foundation is laid for the follow-up management of the local file based on the operation record.
Step S103: storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
in the implementation process of the step, the operation record can be stored in a database index db of the preset browser, specifically, the operation record can be stored in the database index db of the local browser by using the operation time identifier of the user operation as a key, and the operation record is ordered according to the created or modified operation time. And a foundation is laid for the follow-up operation record checking based on the secret key.
Step S104: and searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
In the specific implementation process, key information corresponding to a preset time period read by a user is obtained; searching each piece of operation record information corresponding to the key information in a preset storage area and file type information of each file corresponding to the operation record information based on the key information; and displaying the operation record information and the file type information in a queue form according to the operation time sequence corresponding to the time period. Wherein the file types include: text document type, picture type, etc. Based on the operation record queue information and the file type classification queue information displayed in a preset period, selecting a target operation record in the operation record queue displayed in a display area, and performing operation processing on a file corresponding to the target operation record.
The method comprises the steps of obtaining an access request of a user to a stored and local target file through a preset interface; performing operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process; storing the operation record in a preset storage area; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The HTML document of the local hypertext markup language file is opened through the preset browser, and the local file is operated through the preset interface, so that the management of the stored and local file is realized, and the method is safer and more reliable.
In yet another embodiment of the present application, a local file management method is provided, as shown in fig. 2, including:
step S201: responding to the access operation of a user to a target file stored locally through a preset interface;
in the specific implementation process, a user opens a local hypertext markup language (HTML) document through a preset browser, and then reads, writes or deletes the local document in the HTML through calling a preset interface, so that the local document is managed, specifically, calling File System Access API can be adopted, and the API has the functions of reading, writing and managing the local system document; the method provides a relatively stable local file interaction mode, so that the practical value is ensured, the data safety of a user is ensured, and the front-end visual file management tool can be effectively built; the browser can be a 360-degree browser, a fire fox browser, an IE browser and the like, and the application can be applicable to various browsers. The method for opening the local file of the file system access interface can be used for directly accessing the local file or accessing the local file through the directory of the local disk which is acquired in advance.
Step S202: judging whether to perform access operation on the target file for the first time;
in the specific implementation process, when the preset file system access interface is called to read, write and manage the local system files, the preset file system access interface judges whether to access the target files for the first time or not when the target files are accessed for the first time, if so, an authentication prompt is initiated, the target files can be operated after the authentication is successful, and when the target files are accessed again, the authentication prompt is not performed any more, and the target files can be directly operated.
Step S203: when the judgment result is that the first access operation is performed on the target file, acquiring authentication prompt information corresponding to the access operation of the target file, and performing authentication processing on the access operation based on the authentication prompt information to acquire an authentication result;
in the specific implementation process, when a user obtains an access request of a storage and local target file through a preset interface, judging whether to perform access operation on the target file for the first time; when the judgment result is that the first access operation is carried out on the target file, acquiring authentication prompt information corresponding to the access operation of the target file; specifically, for example: the target file is an A document, and when a user accesses the A document for the first time, an authentication prompt is initiated, wherein the authentication prompt can be: if the operation of the A document is needed, the authentication is successful to carry out the next operation of the A document, and if the operation of the A document is selected to be not ended, the A document cannot be managed. And after the authentication is successful, executing the operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process. For the target file successfully authenticated, the access operation is directly managed without the need of authentication again.
Step S204: judging whether the target file exists locally or not, and obtaining a judging result;
in the specific implementation process, when the target file is processed, firstly, whether the target file exists locally is judged, the directory information of the local disk can be obtained through a preset file system access interface File System Access API, the directory information is stored in a preset storage area, if the disk directory information does not include the target file, the target file does not exist locally is judged, the target file can be edited through a preset rich text editor, the target file is created, and meanwhile, the target file is managed. If the target file exists this time, deleting, checking or modifying the target file can be performed, so that the target file is managed.
Step S205: when the judgment result is that the target file exists locally, viewing, modifying or deleting the target file based on the access request, and generating an operation record corresponding to the viewing, modifying or deleting operation process;
in the implementation process, when the judgment result is that the target file exists locally, deleting operation can be performed on the target file, specifically, when the access request is that the target file is deleted, deleting operation is performed on the target file based on a preset file removing method. The preset file removal method may adopt a removeEntry () method to delete the specified file. For example: the files that want to be deleted are: when a.txt file, the following may be deleted based on the remove Entry ('a.txt') statement: txt file. When the access request is to view or modify the target file, acquiring the content corresponding to the target file based on a preset file retrieval method, and performing viewing or modification operation on the content corresponding to the target file. Specifically, the preset file searching method may be a getFile () method, by which the content of the preset file may be searched for and checked, when the file content needs to be modified, the target file may be modified by using a write () method, after the operation is completed, the file storage path, the file type, and the operation time record information corresponding to the target file of the checking, deleting, and modifying operation are stored in a local preset storage area, where the preset storage area may be a database index xdb of the preset browser.
Step S206: when the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request; generating an operation record corresponding to the process of creating the target file;
in the specific implementation process, when the target file of the current disk is searched through the getFile () statement, and when the target file cannot be found, a rich text editor is created in the local disk to create the target file. Specifically, creating an object for writing the content of the target file; and creating an object corresponding to the target file through an await file handle. Editing file contents corresponding to the target file by adopting preset sentences, and writing the file contents into the object; the specific content of the target file can be edited into the object as described above by the await file Save As statement. And storing the edited file content based on a preset storage statement, and creating the target file. And storing the edited target file object and the content of the target file object by using a write () method, and creating the target file. And generating operation records such as storage path information, file type, operation time, construction time and the like of the target file corresponding to the process of creating the target file, and storing the operation records in a local preset storage area, wherein the preset storage area can be a database index B of a preset browser.
Step S207: and searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
In the specific implementation process, key information corresponding to a preset time period read by a user is obtained; specifically, the time month of the operation may be taken as a key, and each piece of operation record information corresponding to the key information in a preset storage area and file type information of each file corresponding to the operation record information are searched based on the key information; and displaying the operation record information and the file type information in a queue form according to the operation time sequence corresponding to the time period. For example: when a user reads data of the key "202207", the operation records operated by the month 2022 and 7 are sequenced according to the sequence of operation time, operation record queue information corresponding to the key "202207" is generated and displayed, and file type information of each file corresponding to the operation record of the key "202207" is generated and displayed according to the sequence of operation time and the sequence of operation time. A user can select any operation record in the operation records to realize the management of viewing, modifying or deleting of the file corresponding to the operation record; the user can also select any file in the file type queue information so as to edit, view, modify and the like the file to realize the management of the file. If the single file needs to be shared internally, the file to be shared can be uploaded to a network attached storage (Network Attached Storage: NAS for short) disk, and the shared link is used for users in the group to browse and download.
According to the method, a local hypertext markup language (HTML) document is opened on a preset browser, and an access request for a stored and local target file is obtained by calling a preset system access interface File System Access API; judging whether to perform access operation on the target file for the first time; when the judgment result is that the first access operation is carried out on the target file, acquiring authentication prompt information corresponding to the access operation of the target file; judging whether the target file exists locally or not; when the judgment result is that the target file exists locally, viewing, modifying or deleting the target file based on the access request, and generating an operation record corresponding to the viewing, modifying or deleting operation process; when the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request; generating an operation record corresponding to the process of creating the target file; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The local file management method and the local file management system can manage the local file without depending on the network of the Internet, and ensure the safety of the local file.
In still another embodiment of the present application, a local file management apparatus is provided, as shown in fig. 3, including:
acquisition module 1: the method comprises the steps of responding to access operation of a user to a target file stored locally through a preset interface;
operation module 2: the access operation is used for carrying out operation processing on the target file, and an operation record corresponding to an operation processing process is generated;
and a storage module 3: the operation record is used for storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
management module 4: and the file management system is used for searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on the target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
In a specific implementation process, the local file management device further includes: the authentication module is specifically used for: judging whether to perform access operation on the target file for the first time; when the judgment result is that the first access operation is carried out on the target file, acquiring authentication prompt information corresponding to the access operation of the target file; and carrying out authentication processing on the access operation based on the authentication prompt information to obtain an authentication result.
In a specific implementation process, the operation module 2 is specifically configured to: judging whether the target file exists locally or not, and obtaining a judging result; and based on the judging result, operating the target file according to the access request according to a processing mode corresponding to the judging result, and generating an operation record corresponding to an operation processing process.
In a specific implementation process, the operation module 2 is further configured to: when the judging result is that the target file exists locally, viewing, modifying or deleting the target file based on the access request; generating an operation record corresponding to the viewing, modifying or deleting operation process; when the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request; and generating an operation record corresponding to the process of creating the target file.
In a specific implementation process, the operation module 2 is further configured to: when an access request is for viewing or modifying a target file, acquiring first target content corresponding to the target file based on a preset file retrieval method, and viewing or modifying the first target content; and when the access request is to delete the target file, deleting the target file based on a preset file removing method.
In a specific implementation process, the management module 4 is specifically configured to: acquiring target key information corresponding to a preset time period selected by a user; searching a preset storage area based on the target key information to acquire operation record information corresponding to the key information and file type information of each file corresponding to the operation record information; and displaying the operation record information and the file type information in a queue form according to the operation time sequence corresponding to the target key information.
In a specific implementation process, the operation module 2 is further configured to: creating an object for writing second target content of the target file; editing second target content corresponding to the target file by adopting a preset sentence, and writing the second target content into the object; and storing the edited second target content based on a preset storage statement, and creating and obtaining the target file.
The method comprises the steps of obtaining an access request of a user to a stored and local target file through a preset interface; performing operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process; storing the operation record in a preset storage area; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The HTML document of the local hypertext markup language file is opened through the preset browser, and the local file is operated through the preset interface, so that the management of the stored and local file is realized, and the method is safer and more reliable.
Another embodiment of the present application provides a storage medium storing a computer program which, when executed by a processor, performs the method steps of:
responding to the access operation of a user to a target file stored locally through a preset interface;
step two, performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to an operation processing process;
step three, storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The specific implementation process of the above method steps may refer to any embodiment of the local file management method, and this embodiment is not repeated here.
The method comprises the steps of obtaining an access request of a user to a stored and local target file through a preset interface; performing operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process; storing the operation record in a preset storage area; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The HTML document of the local hypertext markup language file is opened through the preset browser, and the local file is operated through the preset interface, so that the management of the stored and local file is realized, and the method is safer and more reliable.
Another embodiment of the present application provides an electronic device, which may be a server, that includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes non-volatile and/or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external client through a network connection. The electronic device program, when executed by a processor, performs a function or step of a server side of a local file management method.
In one embodiment, an electronic device is provided, which may be a client. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external server through a network connection. The electronic device program, when executed by a processor, performs a function or step of a local file management method client side.
Another embodiment of the present application provides an electronic device, at least including a memory, and a processor, where the memory stores a computer program, and the processor when executing the computer program on the memory implements the following method steps:
responding to the access operation of a user to a target file stored locally through a preset interface;
step two, performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to an operation processing process;
step three, storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
The specific implementation process of the above method steps may refer to any embodiment of the local file management method, and this embodiment is not repeated here.
The method comprises the steps of obtaining an access request of a user to a stored and local target file through a preset interface; performing operation processing on the target file aiming at the access request, and generating an operation record corresponding to an operation processing process; storing the operation record in a preset storage area; and acquiring operation record queue information of each file stored in the preset storage area and file type classification queue information corresponding to the operation record queue information according to a preset period, and managing each file based on the operation record queue information and the file type classification queue information. The HTML document of the local hypertext markup language file is opened through the preset browser, and the local file is operated through the preset interface, so that the management of the stored and local file is realized, and the method is safer and more reliable.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements may be made to the present application by those skilled in the art, which modifications and equivalents are also considered to be within the scope of the present application.

Claims (10)

1. A local file management method, comprising:
responding to the access operation of a user to a target file stored locally through a preset interface;
performing operation processing on the target file aiming at the access operation to generate an operation record corresponding to an operation processing process;
storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
and searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
2. The method of claim 1, wherein prior to said performing an operation process on said target file for said access operation request, generating an operation record corresponding to an operation process, said method further comprises:
judging whether to perform access operation on the target file for the first time;
When the judgment result is that the first access operation is carried out on the target file, acquiring authentication prompt information corresponding to the access operation of the target file;
and carrying out authentication processing on the access operation based on the authentication prompt information to obtain an authentication result.
3. The method of claim 1, wherein the performing operation processing on the target file for the access request, and generating an operation record corresponding to an operation processing procedure, specifically includes:
judging whether the target file exists locally or not, and obtaining a judging result;
and based on the judging result, operating the target file according to the access request according to a processing mode corresponding to the judging result, and generating an operation record corresponding to an operation processing process.
4. The method of claim 3, wherein based on the determination result, performing an operation process on the access request on the target file according to a processing manner corresponding to the determination result, and generating an operation record corresponding to an operation processing procedure, specifically includes:
when the judging result is that the target file exists locally, viewing, modifying or deleting the target file based on the access request; generating an operation record corresponding to the viewing, modifying or deleting operation process;
When the judgment result is that the target file does not exist locally, creating the target file through a preset rich text editor based on the access request;
and generating an operation record corresponding to the process of creating the target file.
5. The method of claim 4, wherein when the determination result is that the target file exists, viewing, modifying or deleting the target file based on the access request specifically includes:
when an access request is for viewing or modifying a target file, acquiring first target content corresponding to the target file based on a preset file retrieval method, and viewing or modifying the first target content;
and when the access request is to delete the target file, deleting the target file based on a preset file removing method.
6. The method as claimed in claim 1, wherein the searching operation record queue information of each file corresponding to the target key information stored in the preset storage area and file type classification queue information corresponding to the operation record queue information based on the target key information selected by the user specifically comprises:
Acquiring target key information corresponding to a preset time period selected by a user;
searching a preset storage area based on the target key information to acquire operation record information corresponding to the key information and file type information of each file corresponding to the operation record information;
and displaying the operation record information and the file type information in a queue form according to the operation time sequence corresponding to the target key information.
7. The method according to claim 4, wherein when the target file does not exist as a result of the determination, creating the target file through a preset rich text editor based on the access request specifically includes:
creating an object for writing second target content of the target file;
editing second target content corresponding to the target file by adopting a preset sentence, and writing the second target content into the object;
and storing the edited second target content based on a preset storage statement, and creating and obtaining the target file.
8. A local file management apparatus, comprising:
the acquisition module is used for: the method comprises the steps of responding to access operation of a user to a target file stored locally through a preset interface;
And an operation module: the access operation is used for carrying out operation processing on the target file, and an operation record corresponding to an operation processing process is generated;
and a storage module: the operation record is used for storing the operation record in a preset storage area, wherein the operation record carries storage path identification information, file type identification information and operation time identification information of a target file;
and a management module: and the file management system is used for searching operation record queue information of each file corresponding to the target key information and file type classification queue information corresponding to the operation record queue information stored in a preset storage area based on the target key information selected by a user, and managing each file based on the operation record queue information and the file type classification queue information.
9. A storage medium storing a computer program which, when executed by a processor, implements the steps of the local file management method of any of the preceding claims 1-7.
10. An electronic device comprising at least a memory, a processor, said memory having stored thereon a computer program, said processor, when executing the computer program on said memory, implementing the steps of the local file management method according to any of the preceding claims 1-7.
CN202310270733.6A 2023-03-15 2023-03-15 Local file management method and device, storage medium and electronic equipment Pending CN116305275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310270733.6A CN116305275A (en) 2023-03-15 2023-03-15 Local file management method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310270733.6A CN116305275A (en) 2023-03-15 2023-03-15 Local file management method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116305275A true CN116305275A (en) 2023-06-23

Family

ID=86818279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310270733.6A Pending CN116305275A (en) 2023-03-15 2023-03-15 Local file management method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116305275A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541347A (en) * 2023-06-29 2023-08-04 北京数场科技有限责任公司 Method and device for obtaining document cognition and computing equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541347A (en) * 2023-06-29 2023-08-04 北京数场科技有限责任公司 Method and device for obtaining document cognition and computing equipment
CN116541347B (en) * 2023-06-29 2023-12-01 北京数场科技有限责任公司 Method and device for obtaining document cognition and computing equipment

Similar Documents

Publication Publication Date Title
CN110276002B (en) Search application data processing method and device, computer equipment and storage medium
US20180075138A1 (en) Electronic document management using classification taxonomy
US7627726B2 (en) Systems and methods for managing content having a retention period on a content addressable storage system
CN111475757A (en) Page updating method and device
CN111125598A (en) Intelligent data query method, device, equipment and storage medium
CN109739828B (en) Data processing method and device and computer readable storage medium
US20170371894A1 (en) Samba configuration management method and system for network device
CN116305275A (en) Local file management method and device, storage medium and electronic equipment
WO2017174013A1 (en) Data storage management method and apparatus, and data storage system
CN105824827A (en) File path storage and local file visiting method and apparatus
CN112416880A (en) Method and device for optimizing storage performance of mass small files based on real-time merging
Alisabeth et al. Forensic analysis of instagram on android
CN111651122B (en) Data deleting method, device, server and storage medium
CN115357942B (en) Content self-protection method and device based on online document and storage medium
CN117078181A (en) Automatic method and system for power transaction business data processing flow
CN111176901A (en) HDFS deleted file recovery method, terminal device and storage medium
CN115357943A (en) Method and device for downloading protected document and storage medium
CN115481086A (en) Mass small file reading and writing method and system, electronic device and storage medium
CN112036133B (en) File storage method and device, electronic equipment and storage medium
US10261663B2 (en) Mandatory comment on action or modification
CN113553344A (en) Business data management method, system, computer equipment and storage medium
CN114253922A (en) Resource directory management method, resource management method, device, equipment and medium
CN114189530A (en) Resource cooperation method and system based on Internet
KR101933347B1 (en) System for deleting personal digital information by tracking trace
US8782519B1 (en) Systems and methods for archiving and displaying lengthy documents based on content priority levels

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination