CN114528257A - Method for centrally pasting files, computing equipment and storage medium - Google Patents

Method for centrally pasting files, computing equipment and storage medium Download PDF

Info

Publication number
CN114528257A
CN114528257A CN202210145709.5A CN202210145709A CN114528257A CN 114528257 A CN114528257 A CN 114528257A CN 202210145709 A CN202210145709 A CN 202210145709A CN 114528257 A CN114528257 A CN 114528257A
Authority
CN
China
Prior art keywords
file
files
pasting
accumulated
directory
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
CN202210145709.5A
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210145709.5A priority Critical patent/CN114528257A/en
Publication of CN114528257A publication Critical patent/CN114528257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

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

Abstract

The invention discloses a method for collectively pasting files, a computing device and a storage medium, wherein the method is executed in an operating system and comprises the following steps: receiving the cumulative copying operation of a plurality of files under a plurality of directories, acquiring the file information of the plurality of files and storing the file information in a cumulative copying configuration file; and receiving the accumulation pasting operation of a plurality of files under the target directory, and pasting the plurality of files under the target directory according to the file information in the accumulation copying configuration file. According to the method for collectively pasting the files, the files can be copied for multiple times across the directory hierarchy and are collectively pasted in the same directory, and the operation experience and the copying and pasting efficiency of a user during copying and pasting the files are improved.

Description

Method for centrally pasting files, computing equipment and storage medium
Technical Field
The present invention relates to the field of operating system technologies, and in particular, to a method, a computing device, and a storage medium for centrally pasting files.
Background
In the process of using an operating system, users increasingly need to copy and paste files under different directories.
According to the copy and paste function provided by the current mainstream operating system, the copy and paste of the file can be realized only between two directories, namely, the file can be copied from one directory and the file can be pasted into the other directory. When a user needs to copy files under a plurality of directories and paste the files to another directory, the files under a single directory can be copied and pasted each time, so that the files under the plurality of directories can be copied and pasted only by switching back and forth between different directories. For example, if a user needs to copy a file from the A, B directory to the C directory, the file needs to be copied from the a directory first and then switched to the C directory for pasting, and then the file needs to be copied from the B directory and then switched to the C directory for pasting, which results in a cumbersome process of copying and pasting files across directories. Moreover, when the operating system is logged off or powered off, the copied content will disappear, which greatly affects the user experience.
Therefore, a method for collectively pasting files is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a method of centrally pasting documents in an attempt to solve or at least alleviate the above-presented problems.
According to one aspect of the present invention, there is provided a method for centrally pasting files, executed in an operating system, comprising the steps of: receiving the cumulative copying operation of a plurality of files under a plurality of directories, acquiring the file information of the plurality of files and storing the file information in a cumulative copying configuration file; and receiving the accumulation pasting operation of a plurality of files under the target directory, and pasting the plurality of files under the target directory according to the file information in the accumulation copying configuration file.
Optionally, in the method for centrally pasting files according to the present invention, the file information includes a file path, and the step of pasting the plurality of files under the target directory according to the file information in the accumulated copy configuration file includes: and successively reading each piece of file information in the accumulated copy configuration file, and pasting the file to the target directory based on the file path in the file information.
Optionally, in the method for collectively pasting files according to the present invention, the file information includes a file type, and the step of receiving an accumulated pasting operation for a plurality of files under the target directory further includes: receiving an accumulation pasting operation on files of a preset file type in a plurality of files under a target directory; and acquiring one or more pieces of file information including a predetermined file type from the accumulated copy configuration file, and pasting one or more files of the corresponding predetermined file type under the target directory based on the one or more pieces of file information.
Optionally, in the method for centrally pasting files according to the present invention, the step of obtaining one or more pieces of file information including a predetermined file type from the accumulated copy configuration file, and pasting one or more files of the corresponding predetermined file type under the target directory based on the one or more pieces of file information includes: traversing each piece of file information in the copy configuration file, and determining whether the file type in the file information is a preset file type; if the file type is the preset file type, pasting the corresponding file into the target directory based on the file path.
Optionally, in the method for collectively pasting files according to the present invention, the file types of the plurality of files include one or more of music files, picture files, video files, text files, and directory files.
Optionally, in the method for centrally pasting files according to the present invention, when the plurality of files include a directory file, the step of obtaining file information of the plurality of files and storing the file information in the accumulated copy configuration file includes: and acquiring the file information of one or more subfiles in the directory file, and storing the file information of one or more subfiles in an accumulation copy configuration file.
Optionally, in the method for centrally pasting files according to the present invention, the cumulative copy operation includes: triggering operation of a menu option or a shortcut key for cumulative copying; the cumulative paste operation comprises: and triggering operation of menu options or shortcut keys for accumulating paste.
Alternatively, in the method of collectively pasting files according to the present invention, receiving a paste operation for a file of a predetermined file type among the plurality of files under the target directory includes: receiving triggering operation of menu options for accumulating and pasting on a menu interface, and displaying a file type option interface; and receiving a trigger operation of pasting a preset file type option in the file type option interface.
Optionally, in the method for collectively pasting files according to the present invention, after pasting the plurality of files under the target directory, the method further includes the steps of: and clearing the file information in the accumulated copying configuration file so as to store the file information of a plurality of files which are accumulated and copied next time in the accumulated copying configuration file after the accumulated copying operation of the plurality of files under a plurality of directories is received next time.
Optionally, in the method for centrally pasting files according to the present invention, the step of receiving an accumulated copy operation for a plurality of files under a plurality of directories comprises: respectively receiving accumulated copying operation of one or more files under each directory; and for each file, judging whether the file information is stored in the accumulated copy configuration file or not by comparing file paths, and if not, storing the file information in the accumulated copy configuration file.
Optionally, in the method for collectively pasting files according to the present invention, the cumulative copy operation includes a cumulative cut operation, and after pasting the plurality of files into the target directory, the method further includes the steps of: and deleting the files from the corresponding original directories respectively.
According to an aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method of centrally pasting files as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the technical scheme of the invention, a method for collectively pasting files is provided, in the process of copying and pasting files once, a plurality of files can be subjected to accumulated copying operation under a plurality of directories, and the plurality of files which are accumulated and copied can be accumulated and pasted under the target directories on the basis of the file information recorded in the accumulated copying configuration files by storing the file information of each file which is accumulated and copied in an accumulated copying configuration file. Therefore, the invention can realize that the files are copied for multiple times across the directory hierarchy and are pasted in the same directory in a centralized manner, and improves the operation experience and the copying and pasting efficiency of the user when the files are copied and pasted.
Further, according to the technical scheme of the present invention, after a plurality of files are accumulated and copied, a user may select to paste a file belonging to a predetermined file type, and obtain file information conforming to the predetermined file type from the accumulated and copied configuration file, so as to selectively paste one or more files of the predetermined file type. The preset file type can be any one of file types, and can also be a file type set by a user in a self-defining way, so that the files can be selectively pasted according to the actual requirements of the user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a method 200 of centrally pasting files, in accordance with one embodiment of the present invention;
FIG. 3 illustrates a state diagram for an accumulate copy operation under a directory according to one embodiment of the present invention;
FIG. 4 illustrates a state diagram after an accumulate copy operation under a directory according to one embodiment of the invention; and
FIG. 5 illustrates a state diagram for an accumulate paste operation under a directory according to one embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic block diagram of an example computing device 100.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. Example processor cores 114 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 can be arranged to execute instructions on an operating system with program data 124 by one or more processors 104.
Computing device 100 also includes a storage device 132, storage device 132 including removable storage 136 and non-removable storage 138.
Computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from the storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via the bus/interface controller 130. At least a portion of the operating system 120, applications 122, and data 124 may be stored on removable storage 136 and/or non-removable storage 138, and loaded into system memory 106 via storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered on or the applications 122 are to be executed.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a personal computer including both desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a digital camera, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset, an application specific device, or a hybrid device that include any of the above functions. And may even be implemented as a server, such as a file server, database server, application server, WEB server, and the like. The embodiments of the present invention are not limited thereto.
In an embodiment in accordance with the invention, the operating system 120 of the computing device 100 is configured to perform a method 200 of centrally pasting files in accordance with the invention. The operating system 120 of the computing device 100 includes a plurality of program instructions for executing the method 200 for centrally pasting files of the present invention, and these program instructions may instruct the processor to execute the method 200 for centrally pasting files of the present invention, so that the computing device 100 can perform the method 200 for centrally pasting files of the present invention to realize the cumulative copying and centrally pasting of files under a plurality of directories.
According to an embodiment of the present invention, the kernel of the operating system 120 is deployed with a file manager, which includes a plurality of program instructions for executing the method 200 for centrally pasting files of the present invention, so that the method 200 for centrally pasting files of the present invention can be executed in the file manager.
FIG. 2 illustrates a flow diagram of a method 200 of centrally pasting files, in accordance with one embodiment of the present invention. The method 200 of centrally pasting files may be performed in an operating system of a computing device, such as the computing device 100 described above.
It should be noted that the method 200 for centrally pasting files according to the present invention can be performed in a variety of operating systems, and the present invention is not limited to a specific kind of operating system.
As shown in fig. 2, the method 200 begins at step S210.
In step S210, receiving the cumulative copy operation of the user on the plurality of files under the plurality of directories, acquiring file information of the plurality of files and storing the file information in the cumulative copy configuration file.
It should be noted that, according to the embodiment of the present invention, in one accumulation copy operation process, a user may perform an accumulation copy operation on multiple files stored in different directories across directories. Specifically, a user may open a directory and select one or more files under the directory for an accumulative copy operation, then may enter another directory and select one or more files under another directory for an accumulative copy operation, and so on, may enter multiple directories in sequence and perform an accumulative copy operation on the files under each directory. And for the operating system, respectively receiving the accumulated copying operation of the user on one or more files in each directory, wherein for the accumulated copying operation of the user on each file in different directories, the operating system responds to the accumulated copying operation of the user on the file, acquires the file information of the file, and adds the file information of the file to an accumulated copying configuration file. In this way, the operating system can receive the accumulated copy operation of the user on the plurality of files under the plurality of directories, respectively acquire the file information of each file, and store the file information of each file in the accumulated copy configuration file.
In one embodiment, before performing step S210, the operating system creates an accumulated copy profile for recording file information of all accumulated copy files in advance. In this way, by storing the file information of the accumulated copy file selected by the user each time the accumulated copy operation is performed in the accumulated copy configuration file, the accumulated paste operation for the accumulated copy file can be subsequently performed based on the file information in the accumulated copy configuration file.
In one embodiment, the file information for each file stored in the accumulated replication profile includes a file type and a file path. In the process of receiving the accumulative copy operation of a user on a plurality of files under a plurality of directories, an operating system respectively receives the accumulative copy operation of the user on one or a plurality of files under each directory, judges whether the file information of each file is stored in the accumulative copy configuration file or not by comparing the file path (namely, comparing the file path of the current accumulative copy file with the file path in the file information stored in the accumulative copy configuration file) of each file which is subjected to accumulative copy, and if the file information of the file is not stored in the accumulative copy configuration file, additionally stores the file information of the file in the accumulative copy configuration file. If it is determined that the file information of the file is already stored in the accumulated copy configuration file (the same file information is matched in the accumulated copy configuration file), the file information of the file does not need to be additionally stored at this time.
In one implementation, the cumulative replication profile may be implemented as a.con profile including a CopyFile field, a FileType field, and a FilePath field. The CopyFile field is used to record file information of all files that are cumulatively copied, the FileType field is used to record file type information of each file that is cumulatively copied, and the FilePath field is used to record a file path of each file that is cumulatively copied.
See, for example, the example of an accumulated replication profile shown below:
Figure BDA0003508817960000081
it should be noted that, after completing the operation of cumulatively copying the plurality of files under the plurality of directories, the user may enter the target directory to be cumulatively pasted, so as to paste the plurality of files cumulatively copied under the target directory.
Subsequently, in step S220, the operating system receives the user 'S cumulative paste operation on the plurality of files (the aforementioned cumulative-copied plurality of files) under the target directory, and in response to the user' S cumulative paste operation on the plurality of files under the target directory, pastes the plurality of files under the target directory according to the file information in the cumulative-copy configuration file.
Here, the target directory may be implemented as an arbitrary directory, and the user may select to enter the arbitrary directory to collectively paste a plurality of files that have been previously cumulatively copied. The order in which the files are pasted may be kept the same as the order in which the copied files are accumulated as described above. In addition, if a duplicate name with a file in the target directory occurs during the process of accumulating the pasted files, whether to replace the file, coexist the file, or cancel the pasting of the file may be selected by the user.
According to an embodiment of the present invention, after receiving the operation of the user on the cumulative paste of the plurality of files in the target directory, the operating system obtains the cumulative copy configuration file, where only the file information of the plurality of files in the plurality of directories that are cumulatively copied in step S210 is stored in the cumulative copy configuration file. The operating system successively reads each piece of file information in the accumulated copy configuration file, then acquires a file based on a file path in the file information and pastes the file to the target directory, so that the file corresponding to each piece of file information in the accumulated copy configuration file can be finally pasted to the target directory, and the accumulated pasting of the plurality of files under the plurality of directories which are accumulated and copied in step S210 to the same target directory is realized.
It should be noted that, in the embodiment according to the present invention, the accumulating copy operation further includes accumulating cut operation. For the accumulative cutting operation, after receiving the accumulative cutting operation of a plurality of files by a user under a plurality of directories, the operating system also executes the method to acquire the file information of the plurality of files and stores the file information in the accumulative copy configuration file of the operating system. And then, after receiving the cumulative pasting operation of the user on the files in the target directory, responding to the cumulative pasting operation of the user on the files in the target directory, and pasting the files to the target directory according to the file information in the cumulative copying configuration file. In addition, for the add-up cut operation, after a plurality of files are pasted to the target directory, the plurality of files need to be deleted from the original directories corresponding to the respective files.
In one embodiment of the present invention, in the process of performing cumulative replication on a plurality of files under a plurality of directories, file information of each file is successively added to the emptied cumulative replication configuration file so as to store the file information of each file of the cumulative replication. After the cumulative paste operation in step 220 is performed and the files in the directories are pasted to the target directories, the file information in the current cumulative copy configuration file is removed, so that the file information of each file which is cumulatively copied next time is recorded again in the cumulative copy configuration file after the cumulative copy operation for the files in the directories is received next time, that is, the file information of the files which are cumulatively copied next time is stored in the cumulative copy configuration file.
It should also be noted that the file information already stored in the accumulated copy configuration file is always retained until it is cleared, and the file information in the accumulated copy configuration file is not lost even in the case of logout, shutdown, and reboot of the operating system. Therefore, after the operating system is restarted, the files which are subjected to the last accumulation copying can still be subjected to accumulation pasting based on the file information in the accumulation copying configuration files.
According to one embodiment of the invention, when the user performs the accumulation pasting operation on a plurality of files under the target directory, the files can be selectively pasted based on the preset file type, namely, the files of the preset file type are selected for accumulation pasting.
Specifically, in step 220, the operating system may receive a user selection of an add-on-paste operation for a file of a predetermined file type of the plurality of files under the target directory. For example, the predetermined file type is a picture file. Subsequently, the operating system acquires the accumulated copy configuration file, acquires one or more pieces of file information including a predetermined file type (i.e., file information of one or more files belonging to the predetermined file type) from the accumulated copy configuration file, and pastes the corresponding one or more files of the predetermined file type under the target directory based on the one or more pieces of file information (file path) including the predetermined file type.
Specifically, whether the file type in the file information is a predetermined file type is determined by traversing each piece of file information in the copy configuration file, and if the file type is the predetermined file type and the predetermined file type is included in the file information, pasting a file of the corresponding predetermined file type under the target directory based on a file path in the file information.
According to one embodiment of the invention, the file types comprise, for example, one or more of music files, picture files, video files, text files, directory files. That is, the file types of the plurality of files that are copied at a time of accumulation may include one or more of a music file, a picture file, a video file, a text file, and a directory file.
When the user selects to perform the cumulative paste operation on the files of the predetermined file type under the target directory, the predetermined file type can be any one of music files, picture files, video files, text files and directory files.
In addition, in one embodiment, the user may add a custom file type, which may include, for example, a file timestamp, a file size, and the like, and may use the custom file type as a predetermined file type when the file is pasted, so as to selectively paste the file based on information such as the file timestamp, the file size, and the like. In this way, selective pasting of files according to the actual needs of the user can be achieved.
In one embodiment, when the plurality of files includes a directory file, when file information of the plurality of files that are cumulatively copied is acquired and stored in the cumulative copy configuration file, for each directory file, file information of one or more sub-files in the directory file is further acquired and the file information of the one or more sub-files is stored in the cumulative copy configuration file.
In one implementation, the cumulative copy operation may be specifically implemented as: triggering operation of a menu option or a shortcut key for cumulative copying. Specifically, after a user selects a file to be subjected to accumulation copying under each directory, the user can perform accumulation copying operation on the selected file by triggering a menu option for accumulation copying or triggering a preset shortcut key for accumulation copying. It should be noted that the menu option or the shortcut key for the accumulation cutting operation may be separately set, differently from the menu option or the shortcut key for the accumulation copying operation. The cumulative shearing operation may be specifically implemented as: and triggering a menu option or a shortcut key for accumulating the cut.
The cumulative paste operation may be specifically implemented as: and triggering menu options or shortcut keys for accumulating and pasting. Specifically, after entering the target directory, the user may perform an accumulative paste operation on a plurality of files which are subjected to accumulative copy by triggering a menu option for accumulative paste or triggering a preset shortcut key for accumulative paste.
Fig. 3 illustrates a state diagram when an accumulative copy operation is performed under a directory according to one embodiment of the present invention, fig. 4 illustrates a state diagram after an accumulative copy operation is performed under a directory according to one embodiment of the present invention, and fig. 5 illustrates a state diagram when an accumulative paste operation is performed under a directory according to one embodiment of the present invention. The directories shown in the figure include, for example, text files (new text. txt and text. doc), music files (song. mp3), and video files (video. mkv).
In one implementation, as shown in fig. 3, when a user performs an accumulative copy operation on files in any directory (e.g., directory a), after one or more files are selected, the menu interface may be called, for example, after one or more files are selected in any directory, the menu interface may be called by clicking a right button of a mouse, so that the menu interface pops up and is displayed on the interface of the current directory. The menu interface comprises a menu option for accumulation copying and a menu option for accumulation pasting. Subsequently, the user may trigger a menu option for cumulative copying by a click operation at the menu interface to send a cumulative copy operation to the operating system for the selected one or more files under the directory.
As shown in fig. 4, after receiving the cumulative copy operation of the user on at least one file, the operating system further displays a menu option for "clear cumulative copy" on the menu interface. The user can realize the clearing of the current accumulated copied file by triggering the menu option for clearing the accumulated copied file so as to record the information of the accumulated copied file again. In addition, the user can also clear the current accumulated copied file by triggering a preset shortcut key for clearing the accumulated copied file. That is, the user may send a clear operation for the currently accumulated copied file by triggering a menu option or a shortcut key for clearing the accumulated copy, and the operating system may receive the clear operation for the currently accumulated copied file by the user and then clear all file information currently stored in the accumulated copy configuration file.
The operating system may respond to a user's cumulative paste operation on the file after receiving a user's cumulative copy operation on at least one file. In one implementation, as shown in fig. 5, after entering the target directory, when the user performs the add-and-paste operation, the user may call up the menu interface by clicking a right mouse button on the target directory interface, so that the menu interface pops up and is displayed on the interface of the target directory. The menu interface comprises a menu option for accumulation copying and a menu option for accumulation pasting. Subsequently, the user can trigger a menu option for cumulative paste by clicking on the menu interface to send a cumulative paste operation for one or more files to the operating system.
Further, the operating system, upon receiving the cumulative paste operation on the files, displays a file type option interface that includes an option to paste files of each file type (e.g., "paste picture file only," "paste text file only," "paste directory file only"), and an option to paste all files. The user can request the operating system to perform the accumulation paste operation on the files of the preset file type by triggering the option of pasting the preset file type on the file type option interface. In addition, the user can also request the operating system to perform the cumulative paste operation on all the files which are cumulatively copied by triggering an option of pasting all the files on a file type option interface.
After the menu interface is displayed, for the operating system, receiving a paste operation of a user on a file of a predetermined file type in the plurality of files under the target directory can be realized by the following steps:
and receiving the triggering operation of the user on the menu options for cumulative pasting on the menu interface, and responding to the triggering operation on the menu options for cumulative pasting, and displaying a file type option interface on the target directory interface. And then, receiving a trigger operation of pasting a preset file type option in a file type option interface by a user.
In addition, the user can also realize the accumulation pasting operation on all files which are subjected to accumulation copying or the accumulation pasting operation on the files of the preset file type by triggering a shortcut key which is preset for accumulation pasting.
According to the method for collectively pasting the files, in the process of copying and pasting the files once, the files can be subjected to accumulated copying operation under a plurality of directories, file information of each file subjected to accumulated copying is stored in an accumulated copying configuration file, and the files subjected to accumulated copying can be accumulated and pasted under the target directories based on the file information recorded in the accumulated copying configuration file. Therefore, the invention can realize that the files are copied for multiple times across the directory hierarchy and are pasted in the same directory in a centralized manner, and improves the operation experience and the copying and pasting efficiency of the user when the files are copied and pasted. Further, after the plurality of files are cumulatively copied, the user may select to paste a file belonging to a predetermined file type by acquiring file information conforming to the predetermined file type from the cumulatively copied configuration file so as to selectively paste one or more files of the predetermined file type. The preset file type can be any one of file types, and can also be a file type set by a user in a self-defining way, so that the files can be selectively pasted according to the actual requirements of the user.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the method of centrally pasting files of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media includes readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (13)

1. A method for collectively pasting files, which is executed in an operating system, comprises the following steps:
receiving cumulative copy operation on a plurality of files under a plurality of directories, acquiring file information of the plurality of files and storing the file information in a cumulative copy configuration file; and
and receiving the accumulation pasting operation of a plurality of files under the target directory, and pasting the plurality of files under the target directory according to the file information in the accumulation copying configuration file.
2. The method of claim 1, wherein the file information includes a file path, and wherein pasting the plurality of files under the destination directory based on the file information in the accumulated copy configuration file comprises:
and successively reading each piece of file information in the accumulated copy configuration file, and pasting the file to the target directory based on the file path in the file information.
3. The method of claim 1 or 2, wherein the file information comprises a file type, and the step of receiving an accumulated paste operation for a plurality of files under a target directory further comprises:
receiving an accumulation paste operation on a file of a predetermined file type in a plurality of files under a target directory;
and acquiring one or more pieces of file information including a predetermined file type from the accumulated copy configuration file, and pasting one or more corresponding files of the predetermined file type to the target directory based on the one or more pieces of file information.
4. The method of claim 3, wherein the step of obtaining one or more pieces of file information including a predetermined file type from the accumulated copy configuration file, and pasting one or more files of the corresponding predetermined file type under the destination directory based on the one or more pieces of file information comprises:
traversing each piece of file information in the copy configuration file, and determining whether the file type in the file information is a preset file type;
if the file type is the preset file type, pasting the corresponding file into the target directory based on the file path.
5. The method of any of claims 1-4, wherein the file types of the plurality of files comprise one or more of music files, picture files, video files, text files, directory files.
6. The method of any one of claims 1-5, wherein when the plurality of files includes a directory file, the step of obtaining and storing file information for the plurality of files in an accumulated replication profile comprises:
and acquiring the file information of one or more subfiles in the directory file, and storing the file information of one or more subfiles in an accumulation copy configuration file.
7. The method of any one of claims 1-6,
the cumulative copy operation comprises: triggering operation of a menu option or a shortcut key for cumulative copying;
the cumulative paste operation comprises: and triggering menu options or shortcut keys for accumulating and pasting.
8. The method of any of claims 3-7, wherein receiving a paste operation under a target directory for a file of a predetermined file type of the plurality of files comprises:
receiving triggering operation of menu options for accumulating and pasting on a menu interface, and displaying a file type option interface;
and receiving a trigger operation of pasting a preset file type option in the file type option interface.
9. The method of any of claims 1-8, wherein after pasting the plurality of files under the target directory, further comprising the steps of:
and clearing the file information in the accumulated copying configuration file so as to store the file information of a plurality of files which are accumulated and copied next time in the accumulated copying configuration file after the accumulated copying operation of the plurality of files under a plurality of directories is received next time.
10. The method of any of claims 1-9, wherein receiving cumulative copy operations for a plurality of files under a plurality of directories comprises:
respectively receiving accumulated copying operation of one or more files under each directory;
and for each file, judging whether the file information is stored in the accumulated copy configuration file or not by comparing the file paths, and if not, storing the file information in the accumulated copy configuration file.
11. The method of any of claims 1-10, wherein the accumulated copy operation comprises an accumulated cut operation, further comprising, after pasting the plurality of files under the destination directory, the steps of:
and deleting the files from the corresponding original directories respectively.
12. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-11.
13. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-11.
CN202210145709.5A 2022-02-17 2022-02-17 Method for centrally pasting files, computing equipment and storage medium Pending CN114528257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210145709.5A CN114528257A (en) 2022-02-17 2022-02-17 Method for centrally pasting files, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210145709.5A CN114528257A (en) 2022-02-17 2022-02-17 Method for centrally pasting files, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114528257A true CN114528257A (en) 2022-05-24

Family

ID=81621966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210145709.5A Pending CN114528257A (en) 2022-02-17 2022-02-17 Method for centrally pasting files, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114528257A (en)

Similar Documents

Publication Publication Date Title
CN112988252B (en) Operating system starting method and computing device
US10783073B2 (en) Chronologically ordered out-of-place update key-value storage system
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113742297A (en) File preview method, computing device and storage medium
CN113535650B (en) File naming method and computing device
CN114691226A (en) Multi-operating-system switching operation method, computing device and storage medium
CN109522282A (en) Picture management method, device, computer installation and storage medium
CN114528257A (en) Method for centrally pasting files, computing equipment and storage medium
CN115150392B (en) Remote file copying method, system, computing equipment and storage medium
CN114546678A (en) Method for copying and pasting data, computing equipment and readable storage medium
WO2022222351A1 (en) Method for installing operating system, and computing device
CN111966262B (en) Picture display method and computing device
CN113407999B (en) File protection method, computing device and storage medium
CN114048172A (en) File display method, computing device and storage medium
JP2005216201A (en) Job processing system
CN113742140B (en) File backup method and device and computing equipment
CN113311983B (en) Address bar-based interaction method and computing device
CN113254142B (en) System desktop area dividing method and computing device
CN114461113B (en) Interaction method, processing device and computing equipment based on task bar
CN113656347B (en) File directory export method, file directory import method and computing device
CN114048173A (en) File folding method, computing device and storage medium
CN113221123B (en) Method for combining kernel branches into patches and computing equipment
CN114510456A (en) File searching method, downloading device and computing equipment
CN114021525A (en) Full-text replacement method and device, text editor and computing equipment
CN113268587A (en) Document display method, computing device and readable storage medium

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