CN111104382A - File default naming method and device and electronic equipment - Google Patents

File default naming method and device and electronic equipment Download PDF

Info

Publication number
CN111104382A
CN111104382A CN201911313020.3A CN201911313020A CN111104382A CN 111104382 A CN111104382 A CN 111104382A CN 201911313020 A CN201911313020 A CN 201911313020A CN 111104382 A CN111104382 A CN 111104382A
Authority
CN
China
Prior art keywords
file
naming
default
downloaded
naming rule
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
CN201911313020.3A
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.)
Beihang University
Beijing Mininglamp Software System Co ltd
Original Assignee
Beihang University
Beijing Mininglamp Software System 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 Beihang University, Beijing Mininglamp Software System Co ltd filed Critical Beihang University
Priority to CN201911313020.3A priority Critical patent/CN111104382A/en
Publication of CN111104382A publication Critical patent/CN111104382A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The embodiment of the invention provides a file default naming method, a file default naming device and electronic equipment, and relates to the field of file naming, wherein the method comprises the following steps: acquiring a standby name file newly built by a user or downloaded from a webpage by the user, judging the file type of the standby name file according to the source of the standby name file, wherein the file type comprises a newly built file or a downloaded file, and naming the file to be named according to a default naming rule corresponding to the file type; by distinguishing the default naming rules of the standby name files with different sources and determining the default naming rules of the different standby name files according to the file attributes and the file sources, the default naming includes more file information, and the file management efficiency is improved.

Description

File default naming method and device and electronic equipment
Technical Field
The invention relates to the field of file naming, in particular to a file default naming method, a file default naming device and electronic equipment.
Background
In the information age, people mainly work or study through computers, and various documents are most contacted in the process. As the time of using the computer becomes longer, more and more files are stored in the computer, including not only files created by the computer itself but also files downloaded from web pages. The files usually have a default file name when being saved, but the default file name information is limited, so that more information prompts cannot be provided for a user, and the file management is not helpful.
In view of the foregoing, a need exists for a file naming method that can improve file management.
Disclosure of Invention
In view of the above, the present invention provides a file default naming method, device and electronic device.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a file default naming method, applied to an electronic device, including:
acquiring a standby name file newly built by a user or downloaded from a webpage by the user;
judging the file type of the file to be named according to the source of the file to be named; the file type comprises a new file or a downloaded file;
and naming the file to be named according to a default naming rule corresponding to the file type.
In an optional embodiment, after the step of determining the file type of the file to be named according to the source of the filename file, the method includes:
and determining a default naming rule corresponding to each file type.
In an optional embodiment, the step of determining a default naming rule corresponding to each file type includes:
determining a first naming rule of the new file according to file attributes, creating time and creating personnel of the new file;
or determining a second naming rule of the downloaded file according to the file attribute, the downloading time and the downloading source of the downloaded file.
In an optional embodiment, the step of naming the file to be named according to a default naming rule corresponding to the file type includes:
and naming the new file according to the first naming rule.
In an optional embodiment, the step of naming the file to be named according to a default naming rule corresponding to the file type further includes:
and naming the downloaded file according to the second naming rule.
In a second aspect, an embodiment of the present invention provides a file default naming device, applied to an electronic device, including:
the acquisition module is used for acquiring a standby name file newly built by a user or downloaded from a webpage by the user;
the judging module is used for judging the file type of the file to be named according to the source of the file with the ready name; the file type comprises a new file or a downloaded file;
and the processing module is used for naming the file to be named according to the default naming rule corresponding to the file type.
In an optional embodiment, the processing module is further configured to determine a default naming rule corresponding to each of the file types.
In an optional embodiment, the processing module is further configured to determine a first naming rule of the new file according to a file attribute, creation time, and a creator of the new file;
and the second naming rule is also used for determining the second naming rule of the downloaded file according to the file attribute, the downloading time and the downloading source of the downloaded file.
In an optional embodiment, the processing module is further configured to name the new file according to the first naming rule;
and naming the download file according to the second naming rule.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor can execute the machine executable instructions to implement the method described in any one of the foregoing embodiments.
The embodiment of the invention provides a file default naming method, a file default naming device and electronic equipment, wherein the method comprises the following steps: acquiring a standby name file newly built by a user or downloaded from a webpage by the user, judging the file type of the standby name file according to the source of the standby name file, wherein the file type comprises a newly built file or a downloaded file, and naming the file to be named according to a default naming rule corresponding to the file type; by distinguishing the default naming rules of the standby name files with different sources and determining the default naming rules of the different standby name files according to the file attributes and the file sources, the default naming includes more file information, and the file management efficiency is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a file default naming method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating another file default naming method according to an embodiment of the present invention.
Fig. 3 is a functional block diagram of a file default naming apparatus according to an embodiment of the present invention.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Icon: 100-file default naming means; 110-an obtaining module; 120-a judgment module; 130-a processing module; 200-an electronic device; 210-a processor; 220-memory.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a file default naming method according to an embodiment of the present invention.
Step 101, acquiring a standby name file newly created by a user or downloaded from a webpage by the user.
Step 102, determining the file type of the standby name file according to the source of the standby name file.
103, naming the file to be named according to the default naming rule corresponding to the file type.
In this embodiment, a standby name file newly created by a user or downloaded from a web page by the user is first acquired, then the file type of the standby name file is determined according to the source of the standby name file, and finally the file to be named is named according to a default naming rule corresponding to the file type; by distinguishing the default naming rules of the standby name files with different sources and determining the default naming rules of the different standby name files according to the file attributes and the file sources, the default naming includes more file information, and the file management efficiency is improved.
Fig. 2 is a schematic flow chart of another file default naming method according to an embodiment of the present invention.
It should be noted that the default naming method for files provided in the present embodiment has the same basic principle and technical effect as those of the above embodiments, and for the sake of brief description, no part of the embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments.
Step 201, acquiring a standby name file newly created by a user or downloaded from a webpage by the user.
The standby name file has two source ways, which can be a file newly created by the user or a file downloaded from a webpage by the user.
When a file newly built by a user is obtained, simultaneously obtaining creation time, a file type and creation personnel information;
when acquiring a file downloaded from a webpage by a user, acquiring download time, file type and download source information at the same time.
In step 202, the file type of the standby name file is determined according to the source of the standby name file.
Determining a standby name file newly built by a user as a new file;
the file downloaded by the user from the web page is determined as a download file.
Step 203, determining a default naming rule corresponding to each file type.
The default naming rule comprises a first naming rule and a second naming rule; the first naming rule is used for naming the new file; the second naming convention is used to name the downloaded file.
And respectively using different default naming rules for presenting corresponding default file names to different types of files.
It should be noted that step 203 includes two substeps, and details not mentioned in this step will be described in the substeps.
And a substep 203-1, determining a first naming rule of the new file according to the file attribute, the creation time and the creator of the new file.
The first naming rule may be determined by: determining according to the file attribute, the creation time and the creation personnel of the new file; the following steps can be also included: the user determines the file name according to the rule determined by the actual requirement of the user, such as directly according to the creator.
In the actual application process, one of the naming rules is selected as the first naming rule according to actual needs.
And a sub-step 203-2 of determining a second naming rule of the downloaded file according to the file attribute, the downloading time and the downloading source of the downloaded file.
The second naming rule may be determined by: determining according to the file attribute, the downloading time and the downloading source of the downloaded file; the following steps can be also included: the user determines the file name according to the rule determined by the actual requirement of the user, such as directly according to the downloading source. Wherein the download source includes information related to a web page from which the file was downloaded.
In the actual application process, one of the naming rules is selected as the second naming rule according to actual needs.
And 204, naming the file to be named according to the default naming rule corresponding to the file type.
When the file name of the file with the standby name is in the selected state, the user can press the enter key to confirm or modify the file name according to the default naming rule, and the default file name can greatly remind the user of perfecting the naming of the file as much as possible, so that the subsequent file management is facilitated.
In summary, the file default naming method, device and electronic device provided in the embodiments of the present invention include: acquiring a standby name file newly built by a user or downloaded from a webpage by the user, judging the file type of the standby name file according to the source of the standby name file, wherein the file type comprises a newly built file or a downloaded file, and naming the file to be named according to a default naming rule corresponding to the file type; by distinguishing the default naming rules of the standby name files with different sources and determining the default naming rules of the different standby name files according to the file attributes and the file sources, the default naming includes more file information, and the file management efficiency is improved.
In order to execute the corresponding steps in the above embodiments and various possible manners, an implementation manner of the default naming device for files is given below. Further, referring to fig. 3, fig. 3 is a functional block diagram of a file default naming apparatus according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effect of the default file naming device provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and corresponding contents in the above embodiments may be referred to. The file default naming device 100 comprises: an obtaining module 110, a determining module 120 and a processing module 130.
It is understood that in one embodiment, step 201 is performed by the acquisition module 110.
It is understood that in one embodiment, step 202 is performed by the determination module 120.
It is understood that in one embodiment, steps 203 and 204 are performed by the processing module 130.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic device 200 includes a processor 210 and a memory 220, the memory 220 storing machine executable instructions capable of being executed by the processor 210, the processor 210 being capable of executing the machine executable instructions to implement the file default naming method described in the above embodiments.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
It should be understood that the configuration shown in fig. 4 is merely a schematic configuration of an electronic device, which may also include more or fewer components than shown in fig. 4, or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A default naming method of a file is applied to an electronic device and is characterized by comprising the following steps:
acquiring a standby name file newly built by a user or downloaded from a webpage by the user;
judging the file type of the file to be named according to the source of the file to be named; the file type comprises a new file or a downloaded file;
and naming the file to be named according to a default naming rule corresponding to the file type.
2. The method according to claim 1, wherein the step of determining the file type of the file to be named according to the source of the file with the ready name is followed by the steps of:
and determining a default naming rule corresponding to each file type.
3. The method of claim 2, wherein the default naming convention comprises a first naming convention and a second naming convention, and wherein the step of determining the default naming convention for each of the file types comprises:
determining the first naming rule of the new file according to the file attribute, the creation time and the creator of the new file;
or determining the second naming rule of the downloaded file according to the file attribute, the downloading time and the downloading source of the downloaded file.
4. The method according to claim 3, wherein the step of naming the file to be named according to a default naming rule corresponding to the file type comprises:
and naming the new file according to the first naming rule.
5. The method according to claim 3, wherein the step of naming the file to be named according to a default naming rule corresponding to the file type further comprises:
and naming the downloaded file according to the second naming rule.
6. A default naming device of files is applied to an electronic device and is characterized by comprising:
the acquisition module is used for acquiring a standby name file newly built by a user or downloaded from a webpage by the user;
the judging module is used for judging the file type of the file to be named according to the source of the file with the ready name; the file type comprises a new file or a downloaded file;
and the processing module is used for naming the file to be named according to the default naming rule corresponding to the file type.
7. The apparatus of claim 6,
the processing module is further configured to determine a default naming rule corresponding to each file type.
8. The apparatus of claim 7,
the processing module is further used for determining a first naming rule of the new file according to the file attribute, the creation time and the creator of the new file;
and the second naming rule is also used for determining the second naming rule of the downloaded file according to the file attribute, the downloading time and the downloading source of the downloaded file.
9. The apparatus of claim 8,
the processing module is further configured to name the new file according to the first naming rule;
and naming the download file according to the second naming rule.
10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to perform the method of any one of claims 1 to 5.
CN201911313020.3A 2019-12-18 2019-12-18 File default naming method and device and electronic equipment Pending CN111104382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911313020.3A CN111104382A (en) 2019-12-18 2019-12-18 File default naming method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911313020.3A CN111104382A (en) 2019-12-18 2019-12-18 File default naming method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111104382A true CN111104382A (en) 2020-05-05

Family

ID=70422592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911313020.3A Pending CN111104382A (en) 2019-12-18 2019-12-18 File default naming method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111104382A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535650A (en) * 2021-08-03 2021-10-22 统信软件技术有限公司 File naming method and computing device
CN113691568A (en) * 2020-05-18 2021-11-23 青岛海信移动通信技术股份有限公司 Terminal and method for acquiring file information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192377A1 (en) * 2006-01-27 2007-08-16 Elsevier, Inc. Systems and methods for saving and applying user-specified file naming conventions
CN103401908A (en) * 2013-07-23 2013-11-20 百度在线网络技术(北京)有限公司 Method for renaming downloaded file and cloud server
CN105447061A (en) * 2014-09-29 2016-03-30 优视科技有限公司 Method and system for automatically renaming file after downloading
CN110263007A (en) * 2019-06-28 2019-09-20 深圳市迅雷网络技术有限公司 A kind of file naming method, system and electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192377A1 (en) * 2006-01-27 2007-08-16 Elsevier, Inc. Systems and methods for saving and applying user-specified file naming conventions
CN103401908A (en) * 2013-07-23 2013-11-20 百度在线网络技术(北京)有限公司 Method for renaming downloaded file and cloud server
CN105447061A (en) * 2014-09-29 2016-03-30 优视科技有限公司 Method and system for automatically renaming file after downloading
CN110263007A (en) * 2019-06-28 2019-09-20 深圳市迅雷网络技术有限公司 A kind of file naming method, system and electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691568A (en) * 2020-05-18 2021-11-23 青岛海信移动通信技术股份有限公司 Terminal and method for acquiring file information
CN113535650A (en) * 2021-08-03 2021-10-22 统信软件技术有限公司 File naming method and computing device

Similar Documents

Publication Publication Date Title
US8417764B2 (en) Dynamic mashup creation from a set of resources and resource relationships
CN108292231B (en) Method and system for generating applications from data
CN107748752B (en) Data processing method and device
CN107741935B (en) Data importing method and data importing device
RU2586872C2 (en) Removal of corrupted styles from extensible markup language documents
US11675870B2 (en) Automating mapping between content schema and rendered pages
US20150242389A1 (en) Techniques to identify user interface elements associated with model violation events
CN110738035A (en) document template generation method and device
CN111104382A (en) File default naming method and device and electronic equipment
CA2734207C (en) Electronic file comparator
US20170359445A1 (en) Dynamic discovery and management of page fragments
CN113268232B (en) Page skin generation method and device and computer readable storage medium
CN111090623B (en) Data auditing method and device, electronic equipment and storage medium
CN110555185A (en) Page customization method and system based on PC client
CN115841095A (en) Document establishing method, system, medium and equipment
CN115033436A (en) Page testing method and device, electronic equipment and storage medium
CN115686515A (en) Parameter visualization configuration interface generation method, device, medium and electronic equipment
CN111159142A (en) Data processing method and device
CN109857991B (en) Data storage method and device and electronic equipment
CN110611817B (en) Image compression based on text image content
CN110737642B (en) Database information analysis method, database information analysis device, computer device and storage medium
CN116136757A (en) Log output method and device and electronic equipment
CN108595924B (en) Business authority management method and device, computer equipment and storage medium
JP2006018370A (en) Document management system
CN108595206B (en) Finance and tax software management method and device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200505