CN107341155A - File designation method and device - Google Patents

File designation method and device Download PDF

Info

Publication number
CN107341155A
CN107341155A CN201610282095.XA CN201610282095A CN107341155A CN 107341155 A CN107341155 A CN 107341155A CN 201610282095 A CN201610282095 A CN 201610282095A CN 107341155 A CN107341155 A CN 107341155A
Authority
CN
China
Prior art keywords
filename
naming rule
file
under
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.)
Granted
Application number
CN201610282095.XA
Other languages
Chinese (zh)
Other versions
CN107341155B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610282095.XA priority Critical patent/CN107341155B/en
Publication of CN107341155A publication Critical patent/CN107341155A/en
Application granted granted Critical
Publication of CN107341155B publication Critical patent/CN107341155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F16/164File meta data generation
    • G06F16/166File name conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses a kind of file designation method and device.The file designation method includes:When increasing file under detecting destination path newly, the filename of at least two files under the destination path is obtained;Identify between the filename whether there is identical naming rule;If there is identical naming rule, the filename for being changed to meet the naming rule by the filename for not meeting the naming rule in original file under the destination path according to the naming rule between the filename.Utilize the embodiment of the present application, it is possible to achieve improve the efficiency of change filename.

Description

File designation method and device
Technical field
The application is related to Internet technical field, more particularly to a kind of to download file designation method and device.
Background technology
User often downloads some texts interested in browsed web content from described browse on webpage Part.
In general, user can be by under the file downloads of same subject matter to same file catalogue.For example, user is clear One group of picture on monkey is look at, these pictures may have been entered if user is very interested in these pictures Row is downloaded.Generally, system can be named automatically to the file of the download (such as orders according to the time of download Name such as 201601011000, i.e. 00 second January 1 day 11 point 00 minute in 2015).But system is ordered automatically The mode of name is only capable of expression time, can not highlight the content of file.In order to highlight the content of file, User can be named when being downloaded file to the file of the download, for example, user downloads a pass When the picture of monkey, user can be named when picture saves as to the picture as " monkey ", this Sample, the picture after download just can intuitively know content very much from filename.But during user's download file Identical naming rule might not be followed, even with the file of subject matter, the file first downloaded and rear download File designation rule may also can be different.Such as be both the picture that a subject matter is monkey, user downloads the During one pictures name may be " monkey ", if but download the second pictures when still name " monkey " When system can prompt with the repetition of the filename of the existing file picture of download (i.e. first), so user is just " Monkey " may be named as, is named as " Monkey002 " when downloading three pictures.It is more when downloading After individual file, the demand that user wants the file progress renaming inconsistent to front and rear naming rule will become It is more and more stronger.However, at this moment user can only enter under file directory artificial change one by one and not meet name rule The filename of file then.
In summary, the problem of change filename is less efficient in the prior art be present.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of file designation method and device, to solve prior art It is middle to change the problem of filename is less efficient.
In order to solve the above technical problems, the file designation method and device that the embodiment of the present application provides is such reality Existing:
A kind of file designation method, including:
When increasing file under detecting destination path newly, the text of at least two files under the destination path is obtained Part name;
Identify between the filename whether there is identical naming rule;
If having identical naming rule between the filename, according to the naming rule by the target The filename for not meeting the naming rule under path in original file is changed to meet the naming rule Filename.
A kind of file designation device, including:
Acquiring unit, when increasing file under detecting destination path newly, obtain at least two under the destination path The filename of individual file;
Recognition unit, identify between the filename whether there is identical naming rule;
Unit is named, when there is identical naming rule between the filename, according to the naming rule The filename for not meeting the naming rule in original file under the destination path is changed to meet described The filename of naming rule.
The technical scheme provided from above the embodiment of the present application, by the text for identifying file under destination path There is identical naming rule between part name, the naming rule will not be met further according to the naming rule Filename is changed to the filename for meeting the naming rule.In this way, user enters file directory without oneself Lower artificial change one by one does not meet the filename of the file of naming rule, improve change filename efficiency, Improve Consumer's Experience.
Brief description of the drawings
, below will be to implementing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art The required accompanying drawing used is briefly described in example or description of the prior art, it should be apparent that, describe below In accompanying drawing be only some embodiments described in the application, for those of ordinary skill in the art, Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the file designation method provided in the embodiment of the application one;
Fig. 2 is the flow chart of the file designation method provided in the embodiment of the application one;
Fig. 3 is the flow chart of the file designation method provided in the embodiment of the application one;
Fig. 4 is the module diagram of the file designation device provided in the embodiment of the application one.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with this Apply for the accompanying drawing in embodiment, the technical scheme in the embodiment of the present application be clearly and completely described, Obviously, described embodiment is only some embodiments of the present application, rather than whole embodiments.Base Embodiment in the application, those of ordinary skill in the art are obtained under the premise of creative work is not paid The every other embodiment obtained, it should all belong to the scope of the application protection.
Fig. 1 is the flow chart of the file designation method provided in the embodiment of the application one.In the present embodiment, institute File designation method is stated to comprise the following steps:
S110:When increasing file under detecting destination path newly, at least two text under the destination path is obtained The filename of part.
Can be that file designation method is realized on any form of terminal device in present specification, the end Executive agent of the end equipment as above-mentioned file designation method, it may, for example, be personal computer (PC), just Take formula computer, smart mobile phone, tablet personal computer (PAD) etc..
The destination path can be user download file after store path or synchronous documents after Store path, it can also be the store path after file transfer.
The file used interchangeably can refer to the text that may be present in computer based environment herein Shelves (such as word, txt, excel, pdf), image, audio, the text of video or any other form Part.
S120:Identify between the filename whether there is identical naming rule.
Terminal device by analyzing the filename of above-mentioned at least two file, identify the filename it Between whether there is identical naming rule.
Specifically, the step S120:Identify between the filename whether there is identical naming rule, It can include:
Identify the naming rule that whether there is numerical value inference between the filename.
In the present embodiment, the numerical value reasoning is names according to numerical order, i.e., described in terminal device identification With the presence or absence of the rule on numerical order between filename..For example, first file is entitled " xx01 ", Second file is entitled " xx02 ", because " 01 " and " 02 " have numerically incremental rule, then The terminal device can identifies the naming rule that numerical value inference between the filename be present, and institute It is " xx " addend value afterwards to state naming rule.
Specifically, the step S120:Identify between the filename whether there is identical naming rule, It can include:
Identify the naming rule that whether there is alphabetical inference between the filename.
In the present embodiment, the alphabetical inference is names in alphabetical order, i.e., described in terminal device identification With the presence or absence of the rule in lexicographic order between filename.For example, first file it is entitled " monkey a ", Second file it is entitled " monkey b ", the rule in lexicographic order due to " a " and " b " be present, then The terminal device can identifies the naming rule that alphabetical inference between the filename be present, and institute It is female for " monkey " back word adding to state naming rule.
S130:If having identical naming rule between the filename, according to the naming rule by institute State and do not meet the filename of the naming rule under destination path in original file and be changed to meet the name The filename of rule.
Original file is already present file, i.e., described mesh before file is increased under detecting destination path newly Mark the file in addition to the newly-increased file in path.
Some scenes are exemplified below to be illustrated.The embodiment of the present application can apply to file download scene In, there is former documentary filename under the store path (destination path) of download:Monkey, Monkey001, Assuming that user has downloaded the entitled Monkey002 of file file to the store path again.Terminal device exists When detecting newly-increased file Monkey002 under the store path, the file under the store path is obtained File it is entitled:Monkey, Monkey001, Monkey002, further identify between the filename Whether there is identical naming rule, due to the naming rule of filename " monkey " be only Chinese " monkey ", The naming rule of filename " Monkey001 " is English " Monkey " addend value " 001 ", filename The naming rule of " Monkey002 " is English " Monkey " addend value " 002 ";So identify " Monkey001 " and " Monkey002 " has identical naming rule, i.e., English " Monkey " Plus numerical value.The filename for not meeting the naming rule in original file under the store path only has " monkey Son ", filename " monkey " so according to the naming rule, can be changed to meet the naming rule Filename " Monkey003 ".In this way, the file of the file under store path is entitled:Monkey001、 Monkey002、Monkey003。
The embodiment of the present application can also be applied to synchronous documents scene in, including from first terminal synchronous documents to In second terminal, or synchronous documents are first-class to terminal from server.The synchronous documents may be considered The file in A equipment is copied in B device.For example, in mobile phone (first terminal) file text Part name has:" monkey ", " Monkey001 ", " Monkey002 ", if user is synchronously in the mobile phone Three above-mentioned files are into PAD (second terminal), and per a synchronous file, the PAD can Detect and increase file under store path newly, so as to perform step S110 to S130.Synchronous first filename After the file of " monkey ", due to there was only a file in store path, subsequent step can not be performed;It is synchronous After the file of second filename " Monkey001 ", due to filename " monkey " and " Monkey001 " Without identical naming rule, subsequent step can not be performed;Synchronous 3rd filename " Monkey002 " File after, it is because " Monkey001 ", " Monkey002 " have identical naming rule, i.e., English " Monkey " adds numerical value, then does not meet the naming rule in original file under the store path Filename only have " monkey ", so according to the naming rule, filename " monkey " can be changed to Meet the filename " Monkey003 " of the naming rule.In this way, the filename of the file under store path For:Monkey001、Monkey002、Monkey003.In the same manner, for the synchronous text from server Example on part to terminal, similar with above-mentioned example, here is omitted.
The embodiment of the present application can also be applied in file transfer scene, including never literary with being shifted between path Part.The different paths can be in same equipment or on distinct device.For example, from U Copied files are on personal computer on disk, or, replicate or cut from the A files of personal computer File is cut into the B files of the personal computer.For example, the filename that file in USB flash disk be present has:" monkey Son ", " Monkey001 ", " Monkey002 ", if user shifts above three file from USB flash disk In on to personal computer, a file is often shifted, the personal computer may detect that storage distance Newly-increased file down, so as to perform step S110 to S130.Shift the file of first filename " monkey " Afterwards, due to due to there was only a file in store path, subsequent step can not be performed;Shift second file After the file of name " Monkey001 ", because filename " monkey " and " Monkey001 " do not have phase Same naming rule, can not perform subsequent step;Shift the file of the 3rd filename " Monkey002 " Afterwards, because " Monkey001 ", " Monkey002 " have identical naming rule, i.e., English " Monkey " Plus numerical value, then the filename for not meeting the naming rule in original file under the store path only has " monkey ", so according to the naming rule, filename " monkey " can be changed to meet name rule Filename " Monkey003 " then.In this way, the file of the file under store path is entitled:Monkey001、 Monkey002、Monkey003.In the same manner, for from the A files of personal computer replicate or File is sheared to the example in the B files of the personal computer, it is similar with above-mentioned example, it is no longer superfluous herein State.
In actual applications, if the filename for not meeting naming rule exists multiple, it is changed to meet described The filename of naming rule can be random.
In any scene as described above, it is assumed that except file entitled " monkey ", " Monkey001 ", There is the file of filename " XX " outside the file of " Monkey002 ".In this way, naming rule is not met Filename is just " monkey " and " XX " two;So, both of these documents name is changed to meet described The filename of naming rule.Specific, can be random, you can be to be changed to " monkey " " Monkey003 ", " XX " are changed to " Monkey004 ", or " monkey " is changed to " Monkey004 ", " XX " is changed to " Monkey003 ".
It is noted that for the file increased newly in destination path, can also be according to the name of the acquisition Rule changes filename to it.For example, in the scene of download file, if the filename for downloading file is not inconsistent Naming rule is closed, terminal device can also be changed to the filename for meeting naming rule.
In file scene is downloaded, usually require to be named file to be downloaded when downloading file, at this Can be symbol directly by the file designation to be downloaded according to the naming rule of the acquisition in embodiment Close the filename of naming rule.By the present embodiment, terminal device identifies the filename of file under destination path Between there is identical naming rule, the file of the naming rule will not be met further according to the naming rule Name is changed to the filename for meeting the naming rule.In this way, user enters file directory servant without oneself Work changes the filename for the file for not meeting naming rule one by one, improves efficiency, the lifting of change filename Consumer's Experience.
In the specific embodiment of the application, in the step S130, according to the naming rule The filename for not meeting the naming rule in original file under the destination path is changed to meet described The filename of naming rule, it can specifically include:
The naming rule will not be met according to the naming rule in original file under the destination path Filename is changed to the filename for meeting the naming rule according to creation time order.
In the present embodiment, the creation time can be the creation time of file.Creation time morning, It is located in time sequencing above, creation time evening, positioned at later in time sequencing.For example, first Time is 00 second January 1 day 22 point 20 minute in 2016 and the second time was January 1 day 22: 00 in 2016 Divide 00 point, because the second time is earlier than the very first time, so when the second time was located at first in time sequencing Between before.
Still continue to use previous example, i.e., there are under store path file entitled " monkey ", " Monkey001 ", " Monkey002 " and " XX " file, it is original under the store path after file is increased newly The file entitled " monkey " and " XX " of naming rule are not met in file.During the establishment of " if monkey " Between prior to " XX ", then according to naming rule, filename " monkey " can be changed to " Monkey003 ", And filename " XX " is changed to " Monkey004 ";, whereas if the creation time of " XX " is prior to " monkey Son, then according to naming rule, filename " XX " can be changed to " Monkey003 ", and file Name " monkey " is changed to " Monkey004 ".
The present embodiment implements difference with upper one and is, by creation time change can be controlled multiple The priority change order during filename of naming rule is not met.
As shown in Fig. 2 in the specific embodiment of the application, the step S110 obtains target The filename of at least two files, specifically may include steps of under path:
S111:Obtain the filename at least two files for meeting preparatory condition under destination path.
Correspondingly, the step S130, can specifically include:
S131:If having identical naming rule between the filename, according to the naming rule by institute State the filename change that the naming rule is not met in the original file for meet under destination path preparatory condition To meet the filename of the naming rule.
In actual applications, user is not necessarily wanted all naming rules of not meeting under destination path Filename is modified.For example, the file user long ago downloaded under destination path is not intended to change text Part name, and only wish to change in this downloading process the file for not meeting naming rule.So this implementation The scope of application of the present embodiment to file under the destination path is limited by preparatory condition in example.
The preparatory condition can be including in being increased newly in increased newly in preset duration, this start at least one Kind.Specifically, the preset duration can be the empirical value being manually set.For example, obtain under destination path The filename of at least two files increased newly in half an hour (preset duration).
By the present embodiment, preparatory condition is set to be changed to limit this document naming method under the destination path The scope of application of the filename of file, for not meeting the file of preparatory condition even if not meeting naming rule Filename will not be modified to it.
As shown in figure 3, in the specific embodiment of the application, after the step S120, Before step S130, it can also comprise the following steps:
S121:If having identical naming rule between the filename, judge whether to receive confirmation by Button is triggered generated change directive.
In actual applications, will be directly inconsistent according to the naming rule under the destination path in original file The filename for closing the naming rule is changed to the filename for meeting the naming rule, and is selected without user Select determination, it will usually allow user to produce resentment, so as to reduce Consumer's Experience.In the present embodiment, terminal Equipment predeterminated position can export after having identical naming rule between identifying filename on screen One confirming button, for prompting user.If user clicks on confirming button, it is considered as user and agrees to change The filename of naming rule is not met, and a change directive can be produced.
Correspondingly, the step S130, can specifically include:
S132:If receive ACK button to be triggered generated change directive, according to the naming rule The filename for not meeting the naming rule in original file under the destination path is changed to meet described The filename of naming rule.
Terminal device is triggered after generated change directive receiving confirming button, just can be according to the life The filename that the naming rule is not met in original file under the destination path is changed to accord with by name rule Close the filename of the naming rule.
It is not direct after there is identical naming rule between identifying filename by the present embodiment Change does not meet the filename of naming rule, but needs to receive user and click on what is generated after ACK button Change directive, it can just change the filename for not meeting naming rule.Consumer's Experience can be so improved, is kept away Exempt from user to be not desired to change filename originally, and terminal device directly change does not meet the filename institute of naming rule The problem of generation.
The embodiment of the present application provides and also provides a kind of device, it is possible to achieve above-mentioned method and step, and the device It can be realized, can also be realized by way of hardware or software and hardware combining by software.It is implemented in software Exemplified by, as the device on logical meaning, be by the CPU of server (Central Process Unit, Central processing unit) corresponding computer program instructions are read and run what is formed in internal memory.
Fig. 4 is the module diagram of the file designation device provided in the embodiment of the application one.In the present embodiment, The file designation device includes:
Acquiring unit 210, when increasing file under detecting destination path newly, obtain under the destination path extremely The filename of few two files;
Judging unit 220, identify between the filename whether there is identical naming rule;
Unit 230 is named, when there is identical naming rule between the filename, according to the name The filename that the naming rule is not met in original file under the destination path is changed to meet by rule The filename of the naming rule.
By the present embodiment, there is identical life between the filename of file under terminal device identification destination path Name rule, the filename for not meeting the naming rule is changed to meet further according to the naming rule described The filename of naming rule.In this way, user does not meet without oneself entering artificial change one by one under file directory The filename of the file of naming rule, improve the efficiency of change filename, improve Consumer's Experience.
Preferably, the acquiring unit 210, can specifically include:
Subelement is obtained, obtains the filename at least two files for meeting preparatory condition under destination path;
Correspondingly, the name unit 230, can specifically include:
When there is identical naming rule between the filename, according to the naming rule by the target Meet under path and the filename of the naming rule is not met in original file of preparatory condition be changed to meet The filename of the naming rule.
By the present embodiment, preparatory condition is set and changed to limit this document name device under the destination path The scope of application of the filename of file, for not meeting the file of preparatory condition even if not meeting naming rule Filename will not be modified to it.
Preferably, during the preparatory condition can be including increasing newly in increased newly in preset duration, this start It is at least one.
It is for the file increased newly not in preset duration or new not in this start by the present embodiment The file of increasing also will not be modified filename even if not meeting naming rule to it.
Preferably, the recognition unit 220, is specifically included:
First identification subelement, identifies the naming rule that whether there is numerical value inference between the filename;Its In, the numerical value reasoning is to be named according to numerical order;
Or the second identification subelement, identify that the name between the filename with the presence or absence of alphabetical inference is advised Then;Wherein, trifling alphabetical inference is to name in alphabetical order.
By the present embodiment, terminal device identifies the opinion that existing numerical value pushes away between filename under destination path Naming rule or alphabetical inference naming rule, further according to the numerical value inference or the life of alphabetical inference The filename for the naming rule for not meeting the numerical value inference or alphabetical inference is changed to meet by name rule The filename of the naming rule of numerical value inference or alphabetical inference.In this way, user enters file mesh without oneself The lower artificial change one by one of record does not meet the filename of the file of the naming rule of numerical value inference or alphabetical inference, Improve the efficiency of change filename, improve Consumer's Experience.
Preferably, the name unit 230, can specifically include:
Subelement is named, when there is identical naming rule between the filename, is advised according to the name Then the filename of the naming rule will not be met in original file under the destination path according to creation time Order is changed to the filename for meeting the naming rule.
The present embodiment implements difference with upper one and is, by creation time change can be controlled multiple The priority change order during filename of naming rule is not met.
Preferably, after the recognition unit 220, before the name unit 230, can also wrap Include:
Confirmation unit, when there is identical naming rule between the filename, judge whether to receive really Recognize button to be triggered generated change directive;
Correspondingly, the name unit 230, can specifically include:
Receive ACK button be triggered generated change directive when, according to the naming rule will described in The filename for not meeting the naming rule under destination path in original file is changed to meet the name rule Filename then.
It is not direct after there is identical naming rule between identifying filename by the present embodiment Change does not meet the filename of naming rule, but needs to receive user and click on what is generated after ACK button Change directive, it can just change the filename for not meeting naming rule.Consumer's Experience can be so improved, is kept away Exempt from user to be not desired to change filename originally, and terminal device directly change does not meet the filename institute of naming rule The problem of generation.
In the 1990s, it is changing on hardware that the improvement for a technology, which can be distinguished clearly, The improvement entered on (for example, improvement to circuit structures such as diode, transistor, switches) or software is (right In the improvement of method flow).However, with the development of technology, the improvement of current many method flows is Through directly improving for hardware circuit can be considered as.Designer is nearly all by by improved method flow It is programmed into hardware circuit to obtain corresponding hardware circuit.Therefore, it cannot be said that method flow Improvement cannot be realized with hardware entities module.For example, PLD (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA it is exactly)) such a integrated circuit, its logic function is determined by user to device programming.By setting Meter personnel are voluntarily programmed a digital display circuit " integrated " on a piece of PLD, without asking chip system Manufacturer is made to design and make special IC chip.Moreover, nowadays, substitution manually makes integrated Circuit chip, this programming also use " logic compiler (logic compiler) " software instead to realize mostly, Software compiler used is similar when it writes with program development, and the source code before compiling also obtains Write with specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but have many kinds, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、 Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL (Ruby Hardware Description Language) etc., most generally uses VHDL at present (Very-High-Speed Integrated Circuit Hardware Description Language) with Verilog.Those skilled in the art, which also will be apparent to the skilled artisan that, only to be needed method flow with above-mentioned several hardware descriptions Language slightly programming in logic and is programmed into integrated circuit, it is possible to is readily available and is realized the logical method stream The hardware circuit of journey.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor Or processor and storage can be by computer readable program code (such as the softwares of (micro-) computing device Or firmware) computer-readable medium, gate, switch, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, controller Example include but is not limited to following microcontroller:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller are also implemented as depositing A part for the control logic of reservoir.It is also known in the art that except with pure computer-readable program Code means are realized beyond controller, completely can be by the way that method and step is carried out into programming in logic come control Device is with the shape of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. Formula realizes identical function.Therefore this controller is considered a kind of hardware component, and to being wrapped in it What is included is used to realize that the device of various functions can also to be considered as the structure in hardware component.Or even, can be with It not only can will be the software module of implementation method for realizing that the device of various functions is considered as but also can be hardware Structure in part.
System, device, module or the unit that above-described embodiment illustrates, specifically can be by computer chip or reality Body is realized, or is realized by the product with certain function.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, The function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software embodiment or knot The form of embodiment in terms of conjunction software and hardware.Wherein wrapped in one or more moreover, the present invention can use Containing computer usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program The flow chart and/or block diagram of product describes.It should be understood that can by computer program instructions implementation process figure and / or each flow in block diagram and/or square frame and flow in flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through calculating The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable datas to handle and set In the standby computer-readable memory to work in a specific way so that be stored in the computer-readable memory Instruction produce and include the manufacture of command device, command device realization is in one flow or multiple of flow chart The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to which the instruction that is performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated Outgoing interface, network interface and internal memory.
Internal memory may include the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM). Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by appointing What method or technique realizes that information stores.Information can be computer-readable instruction, data structure, program Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its Random access memory (RAM), read-only storage (ROM), the electrically erasable of his type are read-only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, it can be calculated available for storage The information that equipment accesses.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker The data-signal and carrier wave of body (transitory media), such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, commodity or equipment including a series of elements not only include Those key elements, but also the other element including being not expressly set out, or also include for this process, Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including One ... " limit key element, it is not excluded that in the process including the key element, method, commodity or set Other identical element also be present in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey Sequence product.Therefore, the application can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the application can use wherein includes calculating in one or more Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, Optical memory etc.) on the form of computer program product implemented.
The application can be described in the general context of computer executable instructions, example Such as program module.Usually, program module includes performing particular task or realizes particular abstract data type Routine, program, object, component, data structure etc..This can also be put into practice in a distributed computing environment Application, in these DCEs, by by communication network and connected remote processing devices come Execution task.In a distributed computing environment, program module can be located at the local including storage device In remote computer storage medium.
Each embodiment in this specification is described by the way of progressive, identical phase between each embodiment As part mutually referring to, what each embodiment stressed be it is different from other embodiment it Place.For system embodiment, because it is substantially similar to embodiment of the method, so description Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Embodiments herein is the foregoing is only, is not limited to the application.For this area skill For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle Any modification, equivalent substitution and improvements of work etc., should be included within the scope of claims hereof.

Claims (12)

  1. A kind of 1. file designation method, it is characterised in that including:
    When increasing file under detecting destination path newly, the text of at least two files under the destination path is obtained Part name;
    Identify between the filename whether there is identical naming rule;
    If having identical naming rule between the filename, according to the naming rule by the target The filename for not meeting the naming rule under path in original file is changed to meet the naming rule Filename.
  2. 2. the method as described in claim 1, it is characterised in that obtain at least two text under destination path The filename of part, is specifically included:
    Obtain the filename at least two files for meeting preparatory condition under destination path;
    Correspondingly, the name will not be met according to the naming rule in original file under the destination path The filename of rule is changed to the filename for meeting the naming rule, including:
    Do not met in the original file that will meet preparatory condition under the destination path according to the naming rule The filename of the naming rule is changed to the filename for meeting the naming rule.
  3. 3. method as claimed in claim 2, it is characterised in that the preparatory condition can include default At least one of increased newly in increased newly in duration, this start.
  4. 4. the method as described in claim 1, it is characterised in that identify between the filename whether have There is identical naming rule, specifically include:
    Identify the naming rule that whether there is numerical value inference between the filename;Wherein, the numerical value reasoning To be named according to numerical order;
    Or identify the naming rule that whether there is alphabetical inference between the filename;Wherein, the word Female inference is to name in alphabetical order.
  5. 5. the method as described in claim 1, it is characterised in that according to the naming rule by the mesh The filename for not meeting the naming rule under mark path in original file is changed to meet the naming rule Filename, specifically include:
    The naming rule will not be met according to the naming rule in original file under the destination path Filename is changed to the filename for meeting the naming rule according to creation time order.
  6. 6. the method as described in claim 1, it is characterised in that between the filename is identified whether After identical naming rule, if having identical naming rule, basis between the filename The naming rule will not meet the filename of the naming rule more in original file under the destination path Before being changed to meet the filename of the naming rule, in addition to:
    If having identical naming rule between the filename, judge whether that receiving ACK button is touched The generated change directive of hair;
    Correspondingly, will according to the naming rule if having identical naming rule between the filename The filename for not meeting the naming rule under the destination path in original file is changed to meet the life The filename of name rule, including:
    If receiving ACK button to be triggered generated change directive, according to the naming rule will described in The filename for not meeting the naming rule under destination path in original file is changed to meet the name rule Filename then.
  7. A kind of 7. file designation device, it is characterised in that including:
    Acquiring unit, when increasing file under detecting destination path newly, obtain at least two under the destination path The filename of individual file;
    Recognition unit, identify between the filename whether there is identical naming rule;
    Unit is named, when there is identical naming rule between the filename, according to the naming rule The filename for not meeting the naming rule in original file under the destination path is changed to meet described The filename of naming rule.
  8. 8. device as claimed in claim 7, it is characterised in that the acquiring unit, specifically include:
    Subelement is obtained, obtains the filename at least two files for meeting preparatory condition under destination path;
    Correspondingly, the name unit, is specifically included:
    When there is identical naming rule between the filename, according to the naming rule by the target Meet under path and the filename of the naming rule is not met in original file of preparatory condition be changed to meet The filename of the naming rule.
  9. 9. device as claimed in claim 8, it is characterised in that the preparatory condition can include default At least one of increased newly in increased newly in duration, this start.
  10. 10. device as claimed in claim 7, it is characterised in that the recognition unit, specifically include:
    First identification subelement, identifies the naming rule that whether there is numerical value inference between the filename;Its In, the numerical value reasoning is to be named according to numerical order;
    Or the second identification subelement, identify that the name between the filename with the presence or absence of alphabetical inference is advised Then;Wherein, the alphabetical inference is to name in alphabetical order.
  11. 11. device as claimed in claim 7, it is characterised in that the name unit, specifically include:
    Subelement is named, when there is identical naming rule between the filename, is advised according to the name Then the filename of the naming rule will not be met in original file under the destination path according to creation time Order is changed to the filename for meeting the naming rule.
  12. 12. device as claimed in claim 7, it is characterised in that after the recognition unit, in institute Before stating name unit, in addition to:
    Confirmation unit, when there is identical naming rule between the filename, judge whether to receive really Recognize button to be triggered generated change directive;
    Correspondingly, the name unit, is specifically included:
    Receive ACK button be triggered generated change directive when, according to the naming rule will described in The filename for not meeting the naming rule under destination path in original file is changed to meet the name rule Filename then.
CN201610282095.XA 2016-04-29 2016-04-29 File naming method and device Active CN107341155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282095.XA CN107341155B (en) 2016-04-29 2016-04-29 File naming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282095.XA CN107341155B (en) 2016-04-29 2016-04-29 File naming method and device

Publications (2)

Publication Number Publication Date
CN107341155A true CN107341155A (en) 2017-11-10
CN107341155B CN107341155B (en) 2020-07-07

Family

ID=60221882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282095.XA Active CN107341155B (en) 2016-04-29 2016-04-29 File naming method and device

Country Status (1)

Country Link
CN (1) CN107341155B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027290A (en) * 2019-11-22 2020-04-17 贝壳技术有限公司 Data report naming method and device, electronic equipment and storage medium
CN112015702A (en) * 2020-09-15 2020-12-01 支付宝(杭州)信息技术有限公司 Message file name processing method, device and equipment
CN113448927A (en) * 2021-06-29 2021-09-28 维沃软件技术有限公司 File naming method and device, electronic equipment and storage medium
CN113760249A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Program file processing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746884A (en) * 2004-09-06 2006-03-15 英保达股份有限公司 Automatic naming method and system for digital image file
US20110307849A1 (en) * 2010-06-11 2011-12-15 Fujitsu Limited Logical description difference extracting method, logical design aiding apparatus, and non-transitory computer-readable storage medium thereof
CN103514231A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 File naming method and electronic device
CN103902559A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 File name conversion method and device
CN104077285A (en) * 2013-03-26 2014-10-01 联想(北京)有限公司 File designation method and first electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746884A (en) * 2004-09-06 2006-03-15 英保达股份有限公司 Automatic naming method and system for digital image file
US20110307849A1 (en) * 2010-06-11 2011-12-15 Fujitsu Limited Logical description difference extracting method, logical design aiding apparatus, and non-transitory computer-readable storage medium thereof
CN103514231A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 File naming method and electronic device
CN103902559A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 File name conversion method and device
CN104077285A (en) * 2013-03-26 2014-10-01 联想(北京)有限公司 File designation method and first electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027290A (en) * 2019-11-22 2020-04-17 贝壳技术有限公司 Data report naming method and device, electronic equipment and storage medium
CN112015702A (en) * 2020-09-15 2020-12-01 支付宝(杭州)信息技术有限公司 Message file name processing method, device and equipment
CN113760249A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Program file processing method, device and equipment
CN113448927A (en) * 2021-06-29 2021-09-28 维沃软件技术有限公司 File naming method and device, electronic equipment and storage medium
CN113448927B (en) * 2021-06-29 2024-06-21 维沃软件技术有限公司 File naming method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107341155B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
JP2020503601A (en) Information presentation method and device
US20110258216A1 (en) Usability enhancements for bookmarks of browsers
WO2016082598A1 (en) Method, apparatus, and device for rapidly searching for application program
US10168870B2 (en) System for retrieving, visualizing and editing semantic annotations
CN107341155A (en) File designation method and device
CN105824830B (en) Method, client and equipment for displaying page
US9965495B2 (en) Method and apparatus for saving search query as metadata with an image
KR20170054407A (en) Personalized contextual menu for inserting content in a current application
CN108647076A (en) A kind of page processing method, device and equipment
CN105573574A (en) Application interface navigation method and apparatus
CN105786417A (en) Method, device and equipment for dynamically displaying static pictures
CN112015569B (en) Message reminding processing method and device
CN111026494A (en) Business process processing method, device and equipment
US20150040030A1 (en) Overlay canvas for computer program applications
CN106970758B (en) Electronic document operation processing method and device and electronic equipment
CN107430477A (en) For the technology of the layout of the collection of display content items and transition layout in response to user's touch input
CN110276056B (en) Document editing method, device, equipment and system
CN111381745B (en) Page switching method, device and equipment
CN107066471A (en) A kind of method and device of dynamic display of information
US20220229538A1 (en) Dynamic user interface pagination operation
CN106528069A (en) Software development kit (SDK) integration method and device
CN116302230A (en) Page display method, device and equipment
CN107390995A (en) A kind of ladder numerical value method to set up and device
CN106547785A (en) Information getting method and system in knowledge base

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1246433

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right