CN116594973A - File processing method, device, equipment and storage medium - Google Patents

File processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116594973A
CN116594973A CN202310586749.8A CN202310586749A CN116594973A CN 116594973 A CN116594973 A CN 116594973A CN 202310586749 A CN202310586749 A CN 202310586749A CN 116594973 A CN116594973 A CN 116594973A
Authority
CN
China
Prior art keywords
file
command
files
image
string
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
CN202310586749.8A
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.)
Beijing Youbeika Technology Co ltd
Original Assignee
Beijing Youbeika Technology 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 Beijing Youbeika Technology Co ltd filed Critical Beijing Youbeika Technology Co ltd
Priority to CN202310586749.8A priority Critical patent/CN116594973A/en
Publication of CN116594973A publication Critical patent/CN116594973A/en
Pending legal-status Critical Current

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/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion
    • 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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a file processing method, which comprises the following steps: s1, respectively for the N 0 File generation of N after processing of the Q-th command Q N of file composition Q A file set, which uses the first identifier to process N of every Q-th command Q Marking the file; s2, in response to the acquisition of N first identifiers, marking the Q-th command by adopting a second identifier; s3, if the Q-th command is not the last execution command in the command string, executing S4; if the Q-th command is the command stringS5 is executed if the last execution command is executed; s4, assigning the Q+1th command as the Q-th command, and assigning the N numbers of N Q Assigning the file set to the N 0 The file is returned to execute the step S1; s5, acquiring N processed by the Q-th command Q A file collection; the processing efficiency is also improved.

Description

File processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a file.
Background
In the conventional file processing method, when at least one processing command is executed on at least one file, for example, a picture file is taken as a file example, a series of operations such as scaling, rotation, format conversion and the like are required to be performed on a plurality of image files at the same time, and in the conventional processing method, scaling is performed on each image file respectively, rotation is performed on each scaled image file respectively, and then format conversion operation is performed on each rotated image file respectively; for example, as an example of a document file, serial operations such as renaming and format conversion need to be performed on a plurality of document files at the same time, and in a common processing method, renaming is performed on each document file, and then format conversion is performed on each renamed document file, so that resources are wasted in the process of processing batch files.
Disclosure of Invention
The embodiment of the invention provides a file processing method, which is applied to an editing terminal, wherein the editing terminal at least comprises a file editing area and a command editing area, and the file editing area is used for receiving N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to a first order, and the command string is used for the N commands 0 Every N in the file 0 A method for sequentially executing commands of the command string, the method comprising:
s1, respectively for the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking a file, wherein the Q-th command is any one of the M commands, and executing the step S2;
s2, responding to the acquisition of N pieces of the obtained productsThe first identifier determines that the N is acquired Q A file set, marking the Q command by adopting a second identifier, and executing a step S3;
s3, judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing S4 if the Q-th command is not the last execution command in the command string according to the fact that the acquired number of the second identifiers is smaller than M; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing S5;
S4, acquiring a Q+1st command, assigning the Q+1st command as the Q-th command, and assigning the N Q Assigning the file set to the N 0 A file and returns to execute the step S1 so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
s5, acquiring N processed by the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
In a second aspect, an embodiment of the present invention provides a file processing apparatus, which is applied to an editing terminal, where the editing terminal includes at least a file editing area and a command editing area, and the file editing area is configured to receive N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to a first order, and the command string is used for the N commands 0 Every N in the file 0 A file sequence executing commands of the command string, the apparatus comprising:
A first marking module for respectively marking the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking the file, wherein the Q-th command is any one of the M commands, and jumping to a second marking module for execution;
a second marking module for determining that N are acquired in response to acquiring N first identifiers Q The file set marks the Q command by adopting a second identifier and jumps to the judgment module for execution;
the judging module is used for judging whether the Q-th command is the last executing command in the command string according to the acquired number of the second identifiers, and if the acquired number of the second identifiers is smaller than M, determining that the Q-th command is not the last executing command in the command string, and jumping to the first executing module for executing; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and jumping to a first execution module for execution;
A first execution module for acquiring the (Q+1) th command, assigning the (Q+1) th command as the (Q) th command, and assigning the (N) N Q Assigning the file set to the N 0 A file and returns to the first marking module for execution, so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
a second execution module for acquiring N after the processing of the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has executable code stored thereon, which when executed by the processor, causes the processor to at least implement the file processing method according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement a file processing method as described in the first aspect.
In the scheme provided by the embodiment of the invention, N to be edited are aimed at N 0 In the file, each N 0 The files are automatically traversed and executed for M processing commands, and at least one processing command can be executed for at least one file based on the scheme provided by the embodiment of the invention, so that a visual editing interface is adopted in the batch file processing process, and convenience is brought to users for file modification and batch processing command modification. The method can simultaneously process a plurality of files no matter the image files or the document files are processed, thereby reducing unnecessary manual participation, improving the utilization rate of resources and improving the processing efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for processing a file according to an embodiment of the present invention;
FIG. 2 is an interface diagram of a first example of the present invention;
FIG. 3 is an interface diagram of a second example of the present invention;
FIG. 4 is a schematic diagram of file previewing in a first order according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of file previewing in a second order according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating file previews of a first order arrangement and a second order arrangement according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a document processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device corresponding to the file processing apparatus provided in the embodiment shown in fig. 7.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
The file processing method provided by the embodiment of the invention can be executed by an electronic device, and the electronic device can be a terminal device such as a PC (personal computer), a notebook computer, a smart phone and the like, and can also be a server. The server may be a physical server comprising a separate host, or may be a virtual server, or may be a cloud server or a server cluster.
In the embodiment of the invention, a file processing method is described by taking a terminal device as an example, an editing terminal at least comprises a file editing area and a command editing area, a picture user interface of the editing terminal at least displays the file editing area, and the file editing area is used for loading N to be edited 0 File set, N 0 The file set includes N 0 File, N 0 The file is a source file that is adapted to an initial version of the file editor. The file editing area may be loaded with a plurality of N 0 In this embodiment, N files are loaded in the file editing area 0 The document is illustrated by way of example, N 0 The file can be a loaded source image file or a loaded source file; in the following examples of the present invention, By N 0 The file may be a source image file loaded for illustration, and N 0 The file is a source file to be loaded and the processing procedure is similar to the following, and will not be repeated.
In one embodiment, the file editing area loads N source image files to be edited, for example N 0 And the files are combined, and the files loaded by the file editing area can be edited by a user.
In response to the N 0 Deleting any N in file collection 0 Operation of file (source image file of this embodiment), updating the N 0 Collecting files and deleting the N 0 Total N in file collection 0 The number of the files is reassigned to N;
and in response to the N 0 Newly added any N in file set 0 Operation of file (source image file of this embodiment), updating the N 0 Collecting files and adding the newly added N 0 Total N in file collection 0 The number of files is reassigned to N.
At least displaying N of the file editing area on the image user interface of the editing terminal 0 Each N in the file set 0 A preview image of the document; in one embodiment, it is desirable to provide a plurality of source image files to be edited (exemplary N 0 Files), for example, a series of commands consisting of M commands, such as scaling, resizing, png format conversion, etc., are required to be performed on each source image file, and the series of commands may be received through a command editing area of an editing terminal, and the series of commands may be serially connected into a command set at the editing terminal in a first order, and stored in the command editing area, where the first order may be an order in which the commands input by a user are received by the editing terminal;
Fig. 1 is a flowchart of a file processing method according to an embodiment of the present invention, and in the following first example, a command string composed of custom M commands will be taken as an example, and the processing steps in fig. 1 will be described.
The square of the embodimentThe method is applied to an editing terminal, and particularly as shown in interface 6 in fig. 2, the editing terminal at least comprises the file editing area 201 and the command editing area 203, wherein the file editing area 201 is used for receiving N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to the first order, and the command string is used for the N 0 Every N in the file 0 The file sequentially executes commands of the command string.
Illustratively, the following description will be made with reference to the changes of the interfaces in FIG. 2, and as shown in the interfaces in FIG. 2, in interface 1 in FIG. 2, the file editing area 201 is used to receive N to be edited 0 The file set, in response to receiving the trigger to the picture library 200 in the interface 1, can display the picture library 200 in a floating layer display form, such as the interface shown in the interface 2, can select N from the picture library in a selection manner such as clicking, dragging, etc 0 Files (12 source picture files in this embodiment) are added to the file edit section 201, and M commands can be selected next by the command library 202, and in response to receiving a trigger to the command library 202 in the interface 3, two implementations are given below:
in a first implementation, the command library 202 may be displayed in a floating layer display form, and a command adding control (for example, "adding to … …" in the interface 4 a) is displayed, where the command adding control is used to add the commands selected in the command library according to the first order to the command editing area 203 shown in the interface 5 of fig. 2, where the command editing area may be displayed in the interface 5 of fig. 2, and a command connection line is set in the command editing area, after each command is added to the command editing area through the command adding control, the command connection line is triggered to edit the connection order of each command in the command editing area, and under the action of the command connection line, M commands are displayed in the command editing area to be serially connected according to the first order to form a command string. Or after triggering the command connection control (such as "command connection control" in the interface 4 b), the command ordering is sequentially associated according to the order of adding commands in the command editing area, that is, the newly added command enters the command editing area and is automatically sequentially connected with the last added command in series, and M commands are displayed in the command editing area and are serially connected according to the first order to form a command string.
In response to acquisition of N in the file editing area that the command string edited in the command editing area 203 is applied to the file editing area 0 Indication of the file, (illustratively, the long press file edit section may be triggered to indicate the application of the command string to N of the file edit section 0 The file may also be indicated by setting an "application control" and triggering the "application control" so that N numbers N are not repeated here 0 Each of the files is executed according to the following steps S1 to S5 such that each N 0 The file executes the command string.
Further, the set of files processed for each command in the command string may be displayed correspondingly, as shown in the image file set area corresponding to each command in the interface 5 of fig. 2.
Further, the command strings serially connected in the first order extracted in the format may be displayed in a command editing area (as shown in the command editing area 203 of the interface 5 of fig. 2).
In the command edit section 203 shown in the interface 5 of fig. 2, the user may modify the respective edit commands of the command edit section, or adjust the order of the edit commands,
specifically, a command string composed of the M commands connected to each other may be presented in the command editing area; in response to obtaining an increment command for any serial position of the command string from the command library 202, updating the command string, and reassigning the incremented number of commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
updating the first order of the command string in response to a modification to any command permutation order of the command string;
in response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
After the command string in the command editing area is adjusted, the modified command string is triggered to be applied to N of the file editing area 0 A file, (illustratively, the long press file edit section may be triggered to indicate the application of the modified command string to N of the file edit section 0 The file may also be indicated by setting an "application control" not described in detail herein, so that N numbers N 0 Each of the files is executed according to the following steps S1 to S5 so that each N 0 The file executes the modified command string.
Further, after the following steps S1 to S5 are executed, the file set after each command processing in the command string is correspondingly displayed, as shown in the interface 6 of fig. 2.
In a second implementation, the command library 202 may be displayed in a floating layer display form, and a command connection control (e.g., "command connection control" in the interface 4 b) is displayed, where the command connection control is used to connect M commands selected in the command library according to the first order; and responding to the M commands selected according to the first order in the command library and triggering the command connection control, generating command connection lines among the commands in the command editing area, and displaying M commands in the command editing area to be connected in series according to the first order to form a command string under the action of the command connection lines.
In the interface 4b, the command strings are established by the command connection control and connected in series according to the first order, and then the command strings can be directly displayed in the command editing area 203 as shown in the interface 6 of fig. 2.
In the command edit section 203 shown in the interface 6 of fig. 2, the user can modify the individual edit commands of the command edit section, or adjust the order of the edit commands,
specifically, a command string composed of the M commands connected to each other may be presented in the command editing area; in response to obtaining an increment command for any serial position of the command string from the command library 202, updating the command string, and reassigning the incremented number of commands to M;
updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
updating the first order of the command string in response to a modification to any command permutation order of the command string;
in response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
Accordingly, after the following steps S1 to S5 are executed, the file set after each command processing in the command string is correspondingly displayed, as shown in the interface 6 of fig. 2.
A first example of the invention, performed in accordance with the following method as shown in fig. 1, may include the steps of:
s1, respectively for the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking a file, wherein the Q-th command is any one of the M commands, and executing the step S2;
s2, in response to obtaining N first identifiers, determining that the N identifiers are obtained Q A file set, marking the Q command by adopting a second identifier, and executing a step S3;
s3, judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing S4 if the Q-th command is not the last execution command in the command string according to the fact that the acquired number of the second identifiers is smaller than M; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing S5;
Further, the methodAfter the following step S1 is performed, N after each Q-th command processing is generated Q After the file, each N is adopted on the image user interface of the editing terminal Q The preview of the file covers each corresponding N 0 A preview image of the document;
further, N may also be displayed on the graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of the document, and N after processing for generating each Q-th command, as shown in interface 6 of FIG. 2 Q After the file, generating and displaying each N on the image user interface of the editing terminal Q Preview image of file.
Illustratively, at least N of the file editing area may also be displayed on the graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of document, and
employing each of said N directly on the graphical user interface of the editing terminal after determining that said Q-th command is the last execution command in said command string in response to the number of said second identifiers acquired being equal to M Q The preview image of the file covers each corresponding N 0 The preview image of the file is not displayed, so that the preview image of the intermediate file in the processing process is not displayed, the final processing result is directly displayed, the display resource is saved, and the display of the corresponding drawing is omitted.
S4, acquiring a Q+1st command, assigning the Q+1st command as the Q-th command, and assigning the N Q Assigning the file set to the N 0 A file and returns to execute the step S1 so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
s5, acquiring N processed by the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The file is a source file with the same file type or compatible file type, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, M, N,P, Q are all positive integers.
Illustratively, following the loop of step S4 described above, in response to the N 0 In the file set (the source image file set of this embodiment), there is the P-th file (P-th source image file, illustratively as source image 3 of interface 1 in fig. 4),
after the step S1 is performed on the P-th file (P-th source image file, for example, as in the source image 3 of the interface 1 in fig. 4), the P-th file is acquired Q Personal file (P th Q A picture file, illustratively as picture 31 of interface 1 in fig. 4), said P Q Personal file (P th Q Image files) is the N Q Files in the file set (the image file set processed by the command 1 in the present embodiment); and
after the step S4 is performed on the P-th file (P-th source image file, for example, the source image 3 of the interface 1 in fig. 4), P-th file is acquired Q+1 Personal file (P th Q+1 A picture file, illustratively as picture 32 of interface 1 in fig. 4), said P Q+1 Personal file (P th Q+1 Image files) is the N Q+1 Files in the file set (the image file set processed by the command 2 in the present embodiment);
illustratively, the P-th file and the P-th file may be established Q The storage association relationship of the files, specifically, a first storage queue may be established, the P-th file is stored in the first storage queue, and after executing step S1, the P-th file after being processed by the Q-th command is obtained Q Files, P Q The files are stored in a first storage queue, after the loop of the step S4 is executed, the P (P) after the Q+1st command processing is obtained Q+1 After the files, the P-th Q+1 The files are stored to a first storage queue.
The order of the m+1 files stored in the first storage sequence and the order of the command string made up of M commands are thus identical, and are arranged in the first order. P-th file, P-th Q Personal files and P Q+1 The files are stored in a first order in a first storage queue, thusThe first storage queue also stores preview images of the P-th file and the P-th file in a first order Q Preview image and P of individual files Q+1 Preview image of individual files.
So that in response to the P-th Q Triggering switching of preview images of the files according to the sequence direction of the first sequence, and switching to the P < th > file Q+1 Preview image of the individual file in response to the P Q And triggering switching of the preview images of the files according to the reverse sequence direction of the first sequence, and switching to the preview images of the P-th file.
For example, as shown in the interface of fig. 4, a storage association relationship between the image 3 and the image 31 may be established, specifically, a first storage queue may be previously established, the image 3 may be stored in the first storage queue, the image 31 processed by the command 1 may be obtained after the step S1 is performed, the image 31 may be stored in the first storage queue, and after the step S4 is performed, the image 32 may be stored in the first storage queue after the image 32 processed by the command 2 is obtained.
Such that the number of preview images stored in the first memory sequence is one more than the number of commands in the command string. The order of m+1 preview images stored in the first storage sequence and the order of a command string made up of M commands are arranged in the first order. So that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being in the sequential direction of the first order, and switching to the preview image of image 3 is triggered in response to the preview image of image 31 being in the reverse direction of the first order. In particular as shown in the user interface presentation of interface 2 of fig. 4.
Illustratively, in response to the N 0 In the file set, there are a P-th file (P-th source image file, illustratively, source image 3 of interface 1 in fig. 5) and a p+1-th file (p+1-th source image file, illustratively, source image 4 of interface 1 in fig. 5) arranged in the second order,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q Personal file (P th Q Image files, illustrativelyAs in image 31 of interface 1 in fig. 5), said P Q Personal file (P th Q A source image file, illustratively as image 31 of interface 1 in FIG. 5) is said N Q Files in the file set; and
after the P+1st file completes the step S1, the P+1st file is obtained Q A file (e.g., image 41 of interface 1 in fig. 5) of the (p+1) Q The number of files is the N Q Files in the file set;
illustratively, at N 0 Among the N files in the file set, there is a storage association relationship between the P-1 th file, and the p+1 th file, specifically, when the P-1 th file, and the p+1 th file may be added to the file editing area 201 in the interface 1 of fig. 2 in a selected manner such as clicking, dragging, or the like in the second order, the file editing area has a second storage queue to store the P-1 th file, the P-th file, and the p+1 th file in the second order, and thus, a preview image of the P-1 th file, a preview image of the P-th file, and a preview image of the p+1 th file are also stored in the second storage queue in the second order.
Further, can be applied to N Q Establishing the P-1 th file in the file set Q Personal file, P Q Files and P+1th Q The storage association relation of the individual files, in particular, can be specific to N Q The files in the file set are established to form a third storage queue, and the P-1 file can be obtained after the P-1 file is executed in the step S1 Q Personal file (P-1) Q A picture file, illustratively as picture 21 of interface 1 in FIG. 5), will be P-1 Q The files are stored in a third storage queue, and after the P-th file is executed in the step S1, the P-th file can be obtained Q Personal file (P th Q A picture file, illustratively as picture 31 of interface 1 in FIG. 5), will be P Q Storing the files into a third storage queue, and obtaining the P+1th file after the P+1th file is executed in the step S1 Q A file (e.g., image 41 of interface 1 in fig. 5, for example) will be p+1 Q The files are stored in a third storage queue,therefore, the third store queue also stores the P-1 in the second order Q Preview image of individual file, P Q Preview image and P+1th of individual file Q Preview image of individual files.
So that in response to the P-th Q Triggering switching of preview images of the files according to the sequence direction of the second sequence, and switching to the P+1th sequence Q Preview image of the individual file in response to the P Q Triggering switching of preview images of the files according to the reverse sequence direction of the second sequence, and switching to the P-1 th Q Preview image of individual files.
Illustratively, as shown in the interface presentation of FIG. 5, in the case of N 0 After each of the N files in the file set completes the command 1, N is obtained Q The file set, in which both the image 31 and the image 41 are stored in the third storage queue, the preview image of the image 31, the preview image of the image 41 are also stored in the third storage queue in the second order. So that switching to the preview image of image 41 is triggered in response to the preview image of image 31 being in the sequential direction of said second order and switching to the preview image of image 21 is triggered in response to the preview image of image 31 being in the reverse direction of said second order. In particular as shown in the user interface presentation of interface 2 of fig. 5.
Illustratively, as shown in the interface presentation of fig. 6, the P-th file and the P-th file may also be stored in the first storage queue according to the first order Q Personal files and P Q+1 Storing the P-1 file, the P file and the P+1 file in a second storage queue according to a second sequence;
Then the preview image of the P-th file and the P-th file are stored in the first storage queue according to the first order Q Preview image and P of individual files Q+1 The preview images of the files, and the preview images of the P-1 th file, the preview images of the P-th file and the preview images of the P+1th file are stored in a second storage queue according to a second sequence;
such that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being triggered in the order direction of the first order, switching to the preview image of image 3 is triggered in response to the preview image of image 31 being triggered in the reverse order direction of the first order, and
the switching is triggered in the order direction of said second order for the preview image of image 31 to the preview image of image 41 and in the reverse order for the preview image of image 31 to the preview image of image 21.
In the solution provided by the first example of the present invention, a visual editing interface is adopted, so that a user can modify files conveniently, and commands in batch processing can be modified conveniently. The user can input the command string in the command editing area, so that in the process of processing the files in batches, a plurality of files can be processed simultaneously, and the command string in the command editing area is executed, so that unnecessary manual participation is reduced, the resource utilization rate is improved, and the processing efficiency is also improved.
In the first example, the execution of each step is exemplarily described with reference to the image file as an example in connection with the processing interface, and the method is the same as the processing steps described above in the application to the processing of the document file, and is not repeated here.
In the following second example, a command string composed of M commands obtained from a sample file will be taken as an example, and the processing steps of fig. 1 of the drawings will be described.
The method of this embodiment is applied to an editing terminal, specifically, as shown in interface 9 in fig. 3, where the editing terminal at least includes the above-mentioned file editing area 201 and command editing area 203, and the file editing area 201 is used to receive N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to the first order, and the command string is used for the N 0 Every N in the file 0 The file sequentially executes commands of the command string.
Illustratively, in the following, reference is made to FIG. 3The change of each interface is illustrated, as shown in each interface in fig. 3, in interface 1 in fig. 3, the file editing area 201 is used for receiving N to be edited 0 In addition to the file set, the method may be further used to receive a sample file to be edited, in response to receiving a trigger to the picture library 200 in the interface 1, the picture library 200 may be displayed in a floating layer display form, such as the interface shown in the interface 2 in fig. 3, the sample file may be selected from the picture library in a click, drag, or other selection manner (illustratively, as in the image 0 in the interface 3 in fig. 3), and added to the file editing area 201, and then M commands may be selected by the command library 202, and in response to receiving a trigger to the command library 202 in the interface 3, a command string composed of M commands may be added according to the two implementations given in the first example above, which is not repeated herein.
The processing effect of the sample file after each command processing can be checked after the sample file is subjected to the command string processing, as shown in an interface 5 in fig. 3, the image 01 after the command 1 processing and the image 02 after the command 2 processing can be checked by checking the processing effect of the command 1 through the preview image of the image 01, and the processing effect of the command string (combination of the command 1 and the command 2) can be checked through the preview image of the image 02.
The command library 202 is displayed in a floating layer display form, and a format extraction control is displayed, wherein the format extraction control is used for obtaining a command string according to a sample file, and responding to the trigger of the format extraction control and a selected sample file, the command string formed by M commands executed on the sample file is extracted.
The interface 5 of fig. 3 is just an exemplary implementation, and shows the command string directly in the command editing area during the execution of the command string by the sample file, and also shows the processing effect of each command in the command string on the sample file.
In practical application, the command string of the sample file is not displayed in the process of executing the command string of the sample file, only the final effect of the sample file processed by the command string is displayed, after the trigger of the format extraction control is responded, the format extraction control is adopted to extract the command string executed by the sample file in the process of executing the command string of the sample file according to one sample file, and the command string is displayed in the command editing area. Such an approach omits configuration-related exemplary interface presentation.
The format extraction control is beneficial to decompiling the sample file processed by the command string, obtaining the command string, and displaying the command string in the command editing area for subsequent editing by a user.
Next, as shown in interface 6 of FIG. 3, N can be selected from the picture library in a selection manner such as clicking, dragging, etc 0 Files (12 source picture files in this embodiment) are added to the file edit section 201,
In response to acquiring N command strings extracted by the format extraction control from the file editing area, the N command strings are applied to the file editing area 0 Indication of the file, (illustratively, the long press file edit section may be triggered to indicate that the command strings extracted by the format extraction control are applied to N of the file edit section 0 The file may also be indicated by setting an "application control" not described in detail herein, so that N numbers N 0 Each of the files is executed according to the following steps S1 to S5 such that each N 0 The file executes the command string.
Further, the set of files processed for each command in the command string may be displayed correspondingly, as shown in the image file set area corresponding to each command in the interface 9 of fig. 3.
Further, the command strings serially connected in the first order extracted in the format may be displayed in a command editing area (as shown in the command editing area 203 of the interface 9 of fig. 3).
In the command edit section 203 shown in the interface 9 of fig. 3, the user may modify the respective edit commands of the command edit section, or adjust the order of the edit commands,
specifically, a command string composed of the M commands connected to each other may be presented in the command editing area; in response to obtaining an increment command for any serial position of the command string from the command library 202, updating the command string, and reassigning the incremented number of commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
updating the first order of the command string in response to a modification to any command permutation order of the command string;
in response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
After the command string in the command editing area is adjusted, the modified command string is triggered to be applied to N of the file editing area 0 A file, (illustratively, the long press file edit section may be triggered to indicate the application of the modified command string to N of the file edit section 0 The file may also be indicated by setting an "application control" not described in detail herein, so that N numbers N 0 Each of the files is executed according to the following steps S1 to S5 so that each N 0 The file executes the modified command string.
Further, after the following steps S1 to S5 are executed, the file set after each command processing in the command string is correspondingly displayed, as shown in the interface 9 of fig. 3.
A second example of the invention, performed in accordance with the following method as shown in fig. 1, may include the steps of:
S1, respectively for the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking a file, wherein the Q-th command is any one of the M commands, and executing the step S2;
s2, in response to obtaining N first identifiers, determining that the N identifiers are obtained Q A file set, marking the Q command by adopting a second identifier, and executing a step S3;
s3, judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing S4 if the Q-th command is not the last execution command in the command string according to the fact that the acquired number of the second identifiers is smaller than M; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing S5;
further, a command string can be acquired according to a sample file, and when a command string formed by M commands is acquired according to the sample file, at least a preview image of the sample file can be displayed on a graphical user interface of an editing terminal;
Further, N may also be displayed on the graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of the document, and N after generating each Q-th command processing as shown in interface 9 of FIG. 3 Q After the file, generating and displaying each N on the image user interface of the editing terminal Q Preview image of file.
For example, the command string may be acquired according to the sample file, and when the command string composed of M commands is acquired according to the sample file, at least a preview image of the sample file may be displayed on the image user interface of the editing terminal;
further, N may also be displayed on the graphical user interface of the editing terminal 0 Each N in the file set 0 A preview image of the document, and after determining that the Q-th command is the last execution command in the command string in response to the acquired number of the second identifiers being equal to M, employing each of the N directly on a graphical user interface of the editing terminal Q The preview image of the file covers each corresponding N 0 Preview image of file. Therefore, the preview image of the intermediate file in the processing process is not displayed, the final processing result is directly displayed, the display resources are saved, and the display of the corresponding drawing is omitted.
S4, acquiring the Q+1st commandAssigning the Q+1th command as the Q-th command, and the N Q Assigning the file set to the N 0 A file and returns to execute the step S1 so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
s5, acquiring N processed by the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
Illustratively, following the loop of step S4 described above, in response to the N 0 In the file set (the source image file set of this embodiment), there is the P-th file (P-th source image file, illustratively as source image 3 of interface 1 in fig. 4),
after the step S1 is performed on the P-th file (P-th source image file, for example, as in the source image 3 of the interface 1 in fig. 4), the P-th file is acquired Q Personal file (P th Q A picture file, illustratively as picture 31 of interface 1 in fig. 4), said P Q Personal file (P th Q Image files) is the N Q Files in the file set (the image file set processed by the command 1 in the present embodiment); and
after the step S4 is performed on the P-th file (P-th source image file, for example, the source image 3 of the interface 1 in fig. 4), P-th file is acquired Q+1 Personal file (P th Q+1 A picture file, illustratively as picture 32 of interface 1 in fig. 4), said P Q+1 Personal file (P th Q+1 Image files) is the N Q+1 Files in the file set (the image file set processed by the command 2 in the present embodiment);
illustratively, the P-th file and the P-th file may be established Q The storage association relation of the P files can be specifically established, namely the first storage queue is established to store the P filesEntering a first storage queue, and after executing the step S1, obtaining the P after the Q command processing Q Files, P Q The files are stored in a first storage queue, after the loop of the step S4 is executed, the P (P) after the Q+1st command processing is obtained Q+1 After the files, the P-th Q+1 The files are stored to a first storage queue.
The order of the m+1 files stored in the first storage sequence and the order of the command string made up of M commands are thus identical, and are arranged in the first order. P-th file, P-th Q Personal files and P Q+1 The files are stored in a first order in a first storage queue, so the first storage queue also stores preview images of the P-th file, P-th file in the first order Q Preview image and P of individual files Q+1 Preview image of individual files.
So that in response to the P-th Q Triggering switching of preview images of the files according to the sequence direction of the first sequence, and switching to the P < th > file Q+1 Preview image of the individual file in response to the P Q And triggering switching of the preview images of the files according to the reverse sequence direction of the first sequence, and switching to the preview images of the P-th file.
For example, as shown in the interface of fig. 4, a storage association relationship between the image 3 and the image 31 may be established, specifically, a first storage queue may be previously established, the image 3 may be stored in the first storage queue, the image 31 processed by the command 1 may be obtained after the step S1 is performed, the image 31 may be stored in the first storage queue, and after the step S4 is performed, the image 32 may be stored in the first storage queue after the image 32 processed by the command 2 is obtained.
Such that the number of preview images stored in the first memory sequence is one more than the number of commands in the command string. The order of m+1 preview images stored in the first storage sequence and the order of a command string made up of M commands are arranged in the first order. So that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being in the sequential direction of the first order, and switching to the preview image of image 3 is triggered in response to the preview image of image 31 being in the reverse direction of the first order. In particular as shown in the user interface presentation of interface 2 of fig. 4.
Illustratively, in response to the N 0 In the file set, there are a P-th file (P-th source image file, illustratively, source image 3 of interface 1 in fig. 5) and a p+1-th file (p+1-th source image file, illustratively, source image 4 of interface 1 in fig. 5) arranged in the second order,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q Personal file (P th Q A picture file, illustratively as picture 31 of interface 1 in fig. 5), said P Q Personal file (P th Q A source image file, illustratively as image 31 of interface 1 in FIG. 5) is said N Q Files in the file set; and
after the P+1st file completes the step S1, the P+1st file is obtained Q A file (e.g., image 41 of interface 1 in fig. 5) of the (p+1) Q The number of files is the N Q Files in the file set;
illustratively, at N 0 Among the N files in the file set, there is a storage association relationship between the P-1 th file, and the p+1 th file, specifically, when the P-1 th file, and the p+1 th file may be added to the file editing area 201 in the interface 1 of fig. 2 in a selected manner such as clicking, dragging, or the like in the second order, the file editing area has a second storage queue to store the P-1 th file, the P-th file, and the p+1 th file in the second order, and thus, a preview image of the P-1 th file, a preview image of the P-th file, and a preview image of the p+1 th file are also stored in the second storage queue in the second order.
Further, can be applied to N Q Establishing the P-1 th file in the file set Q Personal file, P Q Files and P+1th Q The storage association relation of the individual files, in particular, can be specific to N Q Files in the file set, a third storage queue is established,the P-1 file can be obtained after the P-1 file is executed in the step S1 Q Personal file (P-1) Q A picture file, illustratively as picture 21 of interface 1 in FIG. 5), will be P-1 Q The files are stored in a third storage queue, and after the P-th file is executed in the step S1, the P-th file can be obtained Q Personal file (P th Q A picture file, illustratively as picture 31 of interface 1 in FIG. 5), will be P Q Storing the files into a third storage queue, and obtaining the P+1th file after the P+1th file is executed in the step S1 Q A file (e.g., image 41 of interface 1 in fig. 5, for example) will be p+1 Q The files are stored in a third storage queue, so that the third storage queue also stores the P-1 in the second order Q Preview image of individual file, P Q Preview image and P+1th of individual file Q Preview image of individual files.
So that in response to the P-th Q Triggering switching of preview images of the files according to the sequence direction of the second sequence, and switching to the P+1th sequence Q Preview image of the individual file in response to the P Q Triggering switching of preview images of the files according to the reverse sequence direction of the second sequence, and switching to the P-1 th Q Preview image of individual files.
Illustratively, as shown in the interface presentation of FIG. 5, in the case of N 0 After each of the N files in the file set completes the command 1, N is obtained Q The file set, in which both the image 31 and the image 41 are stored in the third storage queue, the preview image of the image 31, the preview image of the image 41 are also stored in the third storage queue in the second order. So that switching to the preview image of image 41 is triggered in response to the preview image of image 31 being in the sequential direction of said second order and switching to the preview image of image 21 is triggered in response to the preview image of image 31 being in the reverse direction of said second order. In particular as shown in the user interface presentation of interface 2 of fig. 5.
Illustratively, as shown in the interface illustration of FIG. 6, the P-th may also be stored in a first order in a first store queuePersonal file, P Q Personal files and P Q+1 Storing the P-1 file, the P file and the P+1 file in a second storage queue according to a second sequence;
Then the preview image of the P-th file and the P-th file are stored in the first storage queue according to the first order Q Preview image and P of individual files Q+1 The preview images of the files, and the preview images of the P-1 th file, the preview images of the P-th file and the preview images of the P+1th file are stored in a second storage queue according to a second sequence;
such that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being triggered in the order direction of the first order, switching to the preview image of image 3 is triggered in response to the preview image of image 31 being triggered in the reverse order direction of the first order, and
the switching is triggered in the order direction of said second order for the preview image of image 31 to the preview image of image 41 and in the reverse order for the preview image of image 31 to the preview image of image 21.
The proposal provided by the second example of the invention adopts a visual editing interface, thereby facilitating the file modification and command modification of batch processing. The command string of the command editing area can be executed by extracting the command string executed in the processing process of the sample file according to a certain sample file, so that in the process of processing the files in batches, a plurality of files can be processed simultaneously, unnecessary manual participation is reduced, the resource utilization rate is improved, and the processing efficiency is also improved. In the above second example, the execution of each step is exemplarily described with reference to the image file as an example in connection with the processing interface, and the above method is the same as the above processing steps in the application to the processing of the document file, and will not be repeated here.
A file processing apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these means may be configured by the steps taught by the present solution using commercially available hardware components.
Fig. 7 is a schematic structural diagram of a file processing device according to an embodiment of the present invention, which is applied to an editing terminal, wherein the editing terminal at least includes a file editing area and a command editing area, and the file editing area is used for receiving N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to a first order, and the command string is used for the N commands 0 Every N in the file 0 The file sequentially executes commands of the command string, as shown in fig. 7, the apparatus includes:
a first marking module 71 for respectively marking the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking a file, wherein the Q-th command is any one command of the M commands;
a second marking module 72 for determining that N of the first identifiers are acquired in response to acquiring the N of the first identifiers Q A file set, marking the Q command by adopting a second identifier;
a judging module 73, configured to judge whether the Q-th command is a last execution command in the command string according to the number of the acquired second identifiers, and determine that the Q-th command is not the last execution command in the command string and jump to the first execution module for execution in response to the number of the acquired second identifiers being less than M; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and jumping to a first execution module for execution;
a first execution module 74 for acquiring the (Q+1) th command for the (N) N Q Executing the Q+1st command in each file to generate the (th)N after Q commands are processed Q+1 N of file composition Q+1 A file collection;
a second execution module 75 for acquiring the processed N of the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
The apparatus further comprises: a first updating module 75 for, in response to the N 0 Deleting any N in file collection 0 Operation of file, updating the N 0 Collecting files and deleting the N 0 Total N in file collection 0 The number of the files is reassigned to N; and in response to the N 0 Newly added any N in file set 0 Operation of file, updating the N 0 Collecting files and adding the newly added N 0 Total N in file collection 0 The number of files is reassigned to N.
In the case where the command string is acquired from a sample file, which is a file in which compiling is performed for a command string composed of the M commands serially connected in the first order,
the apparatus further comprises a preview module 76 for displaying at least a preview image of the sample file and displaying the N on a graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of document, and
after generating each Q-th command, N Q After the file, generating and displaying each N on the image user interface of the editing terminal Q A preview image of the document; or (b)
The apparatus further comprises a preview module 76 for displaying at least a preview image of the sample file and displaying the N on a graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of document, and
in response to the acquired second identificationThe number of symbols is equal to M, and each N is adopted on the image user interface of the editing terminal after the Q-th command is determined to be the last executing command in the command string Q The preview image of the file covers each corresponding N 0 Preview image of file.
The apparatus further comprises a preview module 76 for displaying at least N of the file editing area on a graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of document, and
after generating each Q-th command, N Q After the file, generating and displaying each N on the image user interface of the editing terminal Q A preview image of the document; or (b)
The apparatus further comprises a preview module 76 for displaying at least N of the file editing area on a graphical user interface of the editing terminal 0 Each N in the file set 0 Preview image of document, and
employing each of said N's on a graphical user interface of an editing terminal after determining that said Q's command is a last execution command in said command string in response to a number of said second identifiers being obtained equal to M Q The preview image of the file covers each corresponding N 0 Preview image of file.
In the device, the image user interface of the editing terminal also displays the command editing area, and the command string composed of the M mutually connected commands and the command library for editing are displayed in the command editing area;
the apparatus further comprises: a second updating module 77, configured to update the command string and reassign the number of commands after being increased to M in response to acquiring an increase command for any serial position of the command string from the command library;
updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
updating the first order of the command string in response to a modification to any command permutation order of the command string;
in response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
The preview module 76 is further configured to respond to the N 0 In the file set, the P-th file exists,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q A file of the P Q The number of files is the N Q Files in the file set; and
after the execution of the step S4 by the P-th file, obtaining the P-th file Q+1 A file of the P Q+1 The number of files is the N Q+1 Files in the file set;
establishing the P Q Preview image of individual file and said P Q+1 Storing association relation of preview images of the individual files so as to respond to the P < th > file Q Triggering switching of preview images of the files according to the direction of the first sequence, and switching to the P < th > file Q+1 Preview image of individual files.
The preview module 76 is further configured to respond to the N 0 In the file set, there are the P-th file and the P+1-th file arranged in the second order,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q A file of the P Q The number of files is the N Q Files in the file set; and
after the P+1st file completes the step S1, the P+1st file is obtained Q A file of the P+1th Q The number of files is the N Q Files in the file set;
Establishing the P Q Preview image of individual file and the P+1th Q Association of preview images of the individual files such that in response to the image of the P Q Triggering switching of preview images of the files according to the direction of the second sequence, and switching to the P+1th Q Preview image of individual files.
The apparatus shown in fig. 7 may perform the steps described in the foregoing embodiments, and detailed execution and technical effects are referred to in the foregoing embodiments and are not described herein.
In one possible design, the structure of the file processing device shown in fig. 7 may be implemented as an electronic device, as shown in fig. 8, where the electronic device may include: memory 21, processor 22, communication interface 23. Wherein the memory 21 has stored thereon executable code which, when executed by the processor 22, causes the processor 22 to at least implement the file processing method as provided in the previous embodiments.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to at least implement a file processing method as provided in the previous embodiments.
The apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by adding necessary general purpose hardware platforms, or may be implemented by a combination of hardware and software. Based on such understanding, the foregoing aspects, in essence and portions contributing to the art, may be embodied in the form of a computer program product, which may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A file processing method is applied to an editing terminal, wherein the editing terminal at least comprises a file editing area and a command editing area, and the file editing area is used for receiving N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to a first order, and the command string is used for the N commands 0 Every N in the file 0 A method for sequentially executing commands of the command string, the method comprising:
s1, respectively for the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking a file, wherein the Q-th command is any one of the M commands, and executing the step S2;
s2, in response to obtaining N first identifiers, determining that the N identifiers are obtained Q A file set, marking the Q command by adopting a second identifier, and executing a step S3;
s3, judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing S4 if the Q-th command is not the last execution command in the command string according to the fact that the acquired number of the second identifiers is smaller than M; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing S5;
S4, acquiring a Q+1st command, assigning the Q+1st command as the Q-th command, and assigning the N Q Assigning the file set to the N 0 A file and returns to execute the step S1 so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
s5, acquiring N processed by the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
2. The document processing method of claim 1, comprising:
in response to the N 0 Deleting any N in file collection 0 Operation of file, updating the N 0 Collecting files and deleting the N 0 Total N in file collection 0 The number of the files is reassigned to N; and
in response to the N 0 Newly added any N in file set 0 Operation of file, updating the N 0 Collecting files and adding the newly added N 0 Total N in file collection 0 The number of files is reassigned to N.
3. The document processing method of claim 1, comprising:
The command string is obtained according to a sample file, wherein the sample file is a file for executing compiling according to the command string formed by the M commands connected in series according to the first sequence;
the image user interface of the editing terminal displays at least a preview image of the sample file,displaying the N 0 Each N in the file set 0 Preview image of document, and
after generating each Q-th command, N Q After the file, generating and displaying each N on the image user interface of the editing terminal Q A preview image of the document; or (b)
The image user interface of the editing terminal displays at least the preview image of the sample file and displays the N 0 Each N in the file set 0 Preview image of document, and
employing each of said N's on a graphical user interface of an editing terminal after determining that said Q's command is a last execution command in said command string in response to a number of said second identifiers being obtained equal to M Q The preview image of the file covers each corresponding N 0 Preview image of file.
4. The document processing method of claim 1, comprising:
the image user interface of the editing terminal displays at least N of the file editing area 0 Each N in the file set 0 Preview image of document, and
after generating each Q-th command, N Q After the file, generating and displaying each N on the image user interface of the editing terminal Q A preview image of the document; or (b)
The image user interface of the editing terminal displays at least N of the file editing area 0 Each N in the file set 0 Preview image of document, and
employing each of said N's on a graphical user interface of an editing terminal after determining that said Q's command is a last execution command in said command string in response to a number of said second identifiers being obtained equal to M Q The preview image of the file covers each corresponding N 0 Preview image of file.
5. The document processing method of claim 1, comprising:
the image user interface of the editing terminal also displays the command editing area, and the command string composed of the M mutually connected commands and a command library for editing are displayed in the command editing area;
in response to obtaining an addition command to any serial position of the command string from the command library, updating the command string, and reassigning the number of added commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
updating the first order of the command string in response to a modification to any command permutation order of the command string;
in response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
6. The file processing method of claim 1, wherein in response to said N 0 In the file set, the P-th file exists,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q A file of the P Q The number of files is the N Q Files in the file set; and
after the execution of the step S4 by the P-th file, obtaining the P-th file Q+1 A file of the P Q+1 The number of files is the N Q+1 Files in the file set;
establishing the P Q Preview image of individual file and said P Q+1 Storing association relation of preview images of the individual files so as to respond to the P < th > file Q Triggering switching of preview images of the files according to the direction of the first sequence, and switching to the P < th > file Q+1 Preview image of individual files.
7. A document processing method as claimed in claim 1, whereinIn response to the N 0 In the file set, there are the P-th file and the P+1-th file arranged in the second order,
after the execution of the step S1 by the P-th file, obtaining the P-th file Q A file of the P Q The number of files is the N Q Files in the file set; and
after the P+1st file completes the step S1, the P+1st file is obtained Q A file of the P+1th Q The number of files is the N Q Files in the file set;
establishing the P Q Preview image of individual file and the P+1th Q Association of preview images of the individual files such that in response to the image of the P Q Triggering switching of preview images of the files according to the direction of the second sequence, and switching to the P+1th Q Preview image of individual files.
8. A file processing device is applied to an editing terminal, wherein the editing terminal at least comprises a file editing area and a command editing area, and the file editing area is used for receiving N to be edited 0 A file collection, N 0 The file set includes N 0 A file, wherein the command editing area is used for storing a command set, the command set comprises a command string composed of M commands connected in series according to a first order, and the command string is used for the N commands 0 Every N in the file 0 A file sequence executing commands of the command string, the apparatus comprising:
a first marking module for respectively marking the N 0 Executing the Q-th command by each file in the files to generate N processed by the Q-th command Q N of file composition Q A file set, after obtaining N after each Q-th command is processed Q Files, N processed for each Q-th command using a first identifier Q Marking the file, wherein the Q-th command is any one of the M commands, and jumping to a second marking module for execution;
a second marking module for responding to the acquisition of N pieces of the informationA first identifier for determining that the N is acquired Q The file set marks the Q command by adopting a second identifier and jumps to the judgment module for execution;
the judging module is used for judging whether the Q-th command is the last executing command in the command string according to the acquired number of the second identifiers, and if the acquired number of the second identifiers is smaller than M, determining that the Q-th command is not the last executing command in the command string, and jumping to the first executing module for executing; in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and jumping to a first execution module for execution;
A first execution module for acquiring the (Q+1) th command, assigning the (Q+1) th command as the (Q) th command, and assigning the (N) N Q Assigning the file set to the N 0 A file and returns to the first marking module for execution, so that N numbers of N are Q Executing the Q+1st command by each file in the files to generate N processed by the Q+1st command Q+1 N of file composition Q+1 A file collection;
a second execution module for acquiring N after the processing of the Q-th command Q A file set for showing the N Q N in a file set Q A file; wherein each N 0 The files are source files of the same file type or compatible file types, P is more than or equal to 1 and less than or equal to N, Q is more than or equal to 1 and less than or equal to M, and M, N, P, Q are positive integers.
9. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the file processing method of any of claims 1 to 7.
10. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, performs the file processing method of any of claims 1 to 7.
CN202310586749.8A 2023-05-23 2023-05-23 File processing method, device, equipment and storage medium Pending CN116594973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310586749.8A CN116594973A (en) 2023-05-23 2023-05-23 File processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310586749.8A CN116594973A (en) 2023-05-23 2023-05-23 File processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116594973A true CN116594973A (en) 2023-08-15

Family

ID=87595212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310586749.8A Pending CN116594973A (en) 2023-05-23 2023-05-23 File processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116594973A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017060A (en) * 2003-08-12 2005-02-21 주식회사 아이큐브 Batch system for editing image files
CN111857512A (en) * 2020-07-17 2020-10-30 维沃移动通信有限公司 Image editing method and device and electronic equipment
CN112040082A (en) * 2020-09-10 2020-12-04 广东新禾道信息科技有限公司 Image picture batch processing method and device, server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017060A (en) * 2003-08-12 2005-02-21 주식회사 아이큐브 Batch system for editing image files
CN111857512A (en) * 2020-07-17 2020-10-30 维沃移动通信有限公司 Image editing method and device and electronic equipment
CN112040082A (en) * 2020-09-10 2020-12-04 广东新禾道信息科技有限公司 Image picture batch processing method and device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
本书编委会: "《C#程序设计与应用》", vol. 2007, 中国计划出版社, pages: 47 - 48 *

Similar Documents

Publication Publication Date Title
US11112962B2 (en) Content-based directional placement application launch
US10223076B1 (en) Generating code based on user interactions with a user interface element in a code editor
US20070245339A1 (en) Creating documentation screenshots on demand
US8819593B2 (en) File management user interface
JPH10293760A (en) Object management method
CN111694733A (en) API (application programming interface) testing method and device for software development kit SDK (software development kit)
CN105426232A (en) Interface processing method and apparatus
US11080089B1 (en) Systems and methods for managing execution of a sequence of software applications
CN116594973A (en) File processing method, device, equipment and storage medium
CN111598128A (en) Control state identification and control method, device, equipment and medium of user interface
CN116611988B (en) Image processing method, electronic device, and storage medium
CN115756692A (en) Method for automatically combining and displaying pages based on style attributes and related equipment thereof
CN111796733B (en) Image display method, image display device and electronic equipment
CN113722045A (en) Cluster application deployment method and device
CN112597377A (en) Information extraction module generation method, information extraction method and device
CN112558853A (en) Session message processing method and device, electronic device and storage medium
CN111325003B (en) File processing method, device, equipment and storage medium
CN105159551A (en) Information processing method and electronic device
CN116708945B (en) Media editing method, device, equipment and storage medium
CN112947846B (en) Batch processing task execution method and device of object storage system and electronic equipment
CN113986388B (en) Program set loading method, system, electronic device and storage medium
CN115248803B (en) Collection method and device suitable for network disk file, network disk and storage medium
CN115421785B (en) Method, device and medium for transplanting application program
WO2023112107A1 (en) Operation assistance device, operation assistance method, and operation assistance program
CN111161149B (en) Image display 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