CN-122019483-A - File management method, electronic device and readable storage medium
Abstract
The application discloses a file management method, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The method comprises the steps of responding to first input of at least one file, compressing the at least one file to obtain a compressed file, generating first naming information of the compressed file based on file content of the at least one file, and naming the compressed file according to the first naming information.
Inventors
- HUANG ZIXUN
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260213
Claims (10)
- 1. A method of file management, the method comprising: compressing at least one file in response to a first input to the at least one file to obtain a compressed file; Generating first naming information of the compressed file based on file content of the at least one file; and naming the compressed file according to the first naming information.
- 2. The method of claim 1, wherein generating the first naming information for the compressed file based on the file content of the at least one file comprises: First naming information of the compressed file is generated based on file content of the at least one file and at least one of metadata of the at least one file and naming specification information of a historical compressed file.
- 3. The method of claim 2, wherein the metadata includes at least one of a file type, a file storage path, and a file modification time.
- 4. The method of claim 1, wherein generating the first naming information for the compressed file based on the file content of the at least one file comprises: generating first naming information of the compressed file based on desensitization information in file content of the at least one file in the case that the at least one file is an encrypted file; The first naming information comprises first prompt information, and the first prompt information is used for indicating that the at least one file is an encrypted file.
- 5. The method of claim 1, wherein naming the compressed file according to the first naming information comprises: Displaying the first naming information; and in response to a second input of the first naming information, filling the first naming information in a naming input box of the compressed file.
- 6. The method of claim 5, wherein the responsive to the second input of the first naming information, after the naming input box of the compressed file is filled with the first naming information, the method further comprises: Receiving editing input of first naming information in the naming input box; And replacing the first naming information in the naming input box with second naming information in response to the editing input.
- 7. The method of claim 1, wherein the number of first naming information is at least two.
- 8. The method according to claim 1, wherein the method further comprises: Identifying classification attribute information of the compressed file based on file content of the at least one file; and storing the compressed file into a folder corresponding to the classification attribute information.
- 9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 1-8.
- 10. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the method according to any of claims 1-8.
Description
File management method, electronic device and readable storage medium Technical Field The application belongs to the technical field of electronic equipment, and particularly relates to a file management method, electronic equipment and a readable storage medium. Background In existing file management systems, users often need to compress multiple files into one compressed file for storage or transmission. However, the existing compression tools generally use default naming rules, such as generating a compressed file name based on the current date and time, so that it is difficult to accurately reflect the content of the compressed file, and thus a user encounters difficulty in subsequent management and searching of the compressed file, and the manual input of the file name by the user is complicated. It is seen that the naming manner of the compressed file is often difficult to achieve both naming accuracy and operation portability. Disclosure of Invention The embodiment of the application aims to provide a file management method, electronic equipment and a readable storage medium, which can solve the problem of considering the accuracy of naming a compressed file and the portability of operation. In a first aspect, an embodiment of the present application provides a file management method, where the method includes: Compressing the at least one file in response to a first input to the at least one file to obtain a compressed file; generating first naming information of the compressed file based on file content of at least one file; And naming the compressed file according to the first naming information. In a second aspect, an embodiment of the present application provides a file management apparatus, including: the compression module is used for compressing at least one file to obtain a compressed file in response to the first input of the at least one file; the generation module is used for generating first naming information of the compressed file based on file content of at least one file; And the naming module is used for naming the compressed file according to the first naming information. In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect. In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect. In the embodiment of the application, at least one file can be compressed in response to the first input of the at least one file to obtain the compressed file, the first naming information of the compressed file is generated based on the file content of the at least one file, and the compressed file is named according to the first naming information. Therefore, the compressed file is named through the first naming information which automatically generates the compressed file based on the file content, so that the file name can accurately reflect the file content, a user can conveniently and quickly identify and manage the compressed file, the manual naming burden of the user is effectively reduced, the naming accuracy and the operation portability of the compressed file are both considered, and the overall efficiency of file management is improved. Drawings FIG. 1 is a flow chart of a method of file management provided by some embodiments of the present application; FIG. 2 is one of the interface diagrams of the file management method provided in some embodiments of the present application; FIG. 3 is a second interface diagram of a document management method according to some embodiments of the present application; FIG. 4 is a third interface diagram illustrating a method of managing files according to some embodiments of the present application; FIG. 5 is a fourth illustrative interface diagram of a document management method according to some embodiments of the present application; FIG. 6 is a schematic diagram of a file management apparatus according to some embodiments of the present application; FIG. 7 is a schematic diagram of an electronic device provided by some embodiments of the application; Fig. 8 is a schematic dia