CN112000625B - File marking processing method, file processing system and computing device - Google Patents

File marking processing method, file processing system and computing device Download PDF

Info

Publication number
CN112000625B
CN112000625B CN202011178042.6A CN202011178042A CN112000625B CN 112000625 B CN112000625 B CN 112000625B CN 202011178042 A CN202011178042 A CN 202011178042A CN 112000625 B CN112000625 B CN 112000625B
Authority
CN
China
Prior art keywords
file
mark
processing
tag
processing component
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.)
Active
Application number
CN202011178042.6A
Other languages
Chinese (zh)
Other versions
CN112000625A (en
Inventor
刘阳明
崔湛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202011178042.6A priority Critical patent/CN112000625B/en
Publication of CN112000625A publication Critical patent/CN112000625A/en
Application granted granted Critical
Publication of CN112000625B publication Critical patent/CN112000625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

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

Abstract

The invention discloses a method for processing a file mark, which is executed in an operating system of computing equipment, wherein the operating system comprises a bus module, and the bus module comprises a mark processing component and a data processing component. The method comprises the following steps: the marking processing component receives marking processing requests of one or more applications for the files, determines a target file and associated marks and processing types based on the processing requests and sends the target file and the associated marks and processing types to the data processing component; the data processing component marks the target file based on the processing type, updates a file mark mapping table in the data storage device and returns an updating result to the mark processing component; the tag processing component sends the update results to each application. The invention also discloses a corresponding file processing system and a corresponding computing device. The method for marking the files enables a user to mark the files in multiple applications and view various files in a classified manner based on the file marks.

Description

File marking processing method, file processing system and computing device
Technical Field
The present invention relates to the field of computer and internet technologies, and in particular, to a method for processing a file label, a file processing system, and a computing device.
Background
At present, a file management system of a computer generally only provides a sorting mode for classifying and storing files or folders through a file directory structure, and the mode is relatively single and inflexible. File tagging provides a user-defined way of categorizing files in addition to file directory management by associating additional attributes with the files. Based on the file marking technology, the flexible classification and filing of files or folders can be realized without depending on the file directory structure.
In the prior art, many desktop operating systems based on Linux kernels are available on the market, and the Linux operating systems which are more mainstream include Debian, Ubuntu, Arch, CentOS and the like. The Linux operating system has the advantages of high efficiency, but has a certain gap in usability compared with Windows and MacOS, and none of the listed Linux operating systems commonly used in the market can realize the function of classifying and managing files based on a file marking technology on the operating system level, and can only realize the marking, viewing and managing of files by developing an application program specially used for marking files.
Therefore, a method for processing a file mark is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a marking process for documents in an attempt to solve or at least alleviate the above-identified problems.
According to an aspect of the present invention, there is provided a method for tag processing a file, which is executed in an operating system of a computing device, the computing device includes a data storage device and one or more applications, the data storage device stores a file tag mapping table, wherein the operating system includes a bus module, the bus module includes a tag processing component and a data processing component, the tag processing component is connected to the data storage device through the data processing component, and the tag processing component is connected to the one or more applications, the method includes: the marking processing component receives marking processing requests of one or more applications for the files, determines a target file and associated marks and processing types based on the processing requests and sends the target file and the associated marks and processing types to the data processing component; the data processing component marks the target file based on the processing type, updates a file mark mapping table in the data storage device based on the processed target file and the associated mark, and returns an update result of the file mark mapping table to the mark processing component; and the mark processing component sends the update result of the file mark mapping table to each application so that each application can acquire the association relationship between the updated file and the mark.
Optionally, in the method for processing a file according to the present invention, a tag information list including a plurality of types of tag information is further stored in the data storage device, and the processing type includes updating a file tag; the marking process of the target file comprises the following steps: inquiring whether the mark information list comprises new mark information corresponding to the update file mark; and if so, associating the target file with the new mark, and updating the mark associated with the target file in the file mark mapping table.
Optionally, in the method for processing a file according to the present invention, the updating a file mark includes adding a file mark and modifying a file mark; associating the target file with the new tag includes; when the processing type is file mark adding, adding a new mark for the target file based on the new mark information; and when the processing type is the modified file mark, modifying the mark associated with the target file into a new mark based on the new mark information.
Optionally, in the method for processing a file tag according to the present invention, when the processing type is adding a file tag, after adding a new tag to a target file, updating a tag associated with the target file in a file tag mapping table includes: and judging whether the target file is included in the file mark mapping table or not, and if not, adding the target file and the associated new mark into the file mark mapping table.
Optionally, in the method for processing a file tag according to the present invention, before modifying the tag associated with the target file into a new tag, the method further includes: a method of modifying a file marker is obtained.
Optionally, in the method for processing a file according to the present invention, the tag information includes a corresponding tag identifier, a tag name, and a tag color; each entry in the file tag mapping table includes a file and a tag associated with the file.
Optionally, in the method for processing a file according to the present invention, the processing type further includes deleting a file flag, and the processing for marking a target file includes: and deleting the mark associated with the target file.
Optionally, in the method for processing a file according to the present invention, the processing type further includes obtaining or deleting a file corresponding to the flag, and modifying a file name corresponding to the flag; the marking process of the target file comprises the following steps: acquiring or deleting the target file; and modifying the name of the target file.
According to one aspect of the present invention, there is provided a file processing system, residing in a computing device, comprising: one or more applications; the data storage device stores a file mark mapping table; a bus module residing in an operating system of a computing device, the bus module being connected to a data storage device, one or more applications, respectively, the bus module comprising: the data processing component is connected with the data storage device; the mark processing component is connected with the data processing component, is connected with one or more applications, is suitable for receiving processing requests of the one or more applications for the target file, determines the target file and the associated mark and processing type based on the processing requests, and sends the target file and the associated mark and processing type to the data processing component; wherein the data processing component is adapted to mark the target file based on the processing type, update a filemark mapping table in the data storage based on the processed target file and the associated mark; and is adapted to return the result of the update to the file tag mapping table to the tag processing component, so that the tag processing component sends the result of the update to each application.
Optionally, in a file processing system according to the present invention, the bus module includes a bus interface; one or more applications are in communication connection with the mark processing component through the bus interface, and the applications are suitable for requesting the mark processing component to process files based on the bus interface and receiving the update result sent by the mark processing component based on the bus interface.
Optionally, in the file processing system according to the present invention, the tag processing component is tagmanager daemon and the data processing component is QSql.
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 tag processing of a file 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 file marking method is provided, wherein a bus module in an operating system is configured to execute the file marking method, and one or more applications are in communication connection with the bus module. The bus module is provided with a mark processing component which is communicated with one or more applications and a data processing component which is communicated and connected with the data storage device. The marking processing component can receive a marking processing request of a user to a file in any application, the data processing component carries out corresponding marking processing on a target file based on the processing type of the request, the file marking mapping table in the data storage device is updated, and then the marking processing component sends the updating result to each application in communication connection with the marking processing component.
Thus, according to the marking method of the invention, a user can mark files in each application establishing communication connection with the bus module, and classify and manage various files based on file marks. Moreover, after any application modifies the association relationship between the file and the tag, each application can acquire the latest association relationship between the file and the tag from the bus module and provide the latest association relationship between the file and the tag for the user. In this way, a user can view or edit the corresponding files in a classified manner based on the association relationship between the files and the marks in the process of using each application, so that the user can conveniently and efficiently refer to and process a plurality of files of the same type.
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 mark processing a file according to one embodiment of the invention; and
FIG. 3 shows a schematic diagram of a document processing system 300 according to one embodiment of the 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 shows a schematic diagram of a computing device 100, according to one embodiment of the invention.
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. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), 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 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, a database server, an application server, a WEB server, and so forth. The embodiments of the present invention are not limited thereto.
In an embodiment in accordance with the invention, the operating system of the computing device 100 is configured to perform a method 200 of tag processing a file in accordance with the invention. Among other things, the operating system of computing device 100 contains a plurality of program instructions that implement a method 200 for tag processing of files in accordance with the present invention. One or more applications reside in the computing device 100, and the one or more applications may run on an operating system.
According to one embodiment, the operating system of the computing device 100 includes a bus module configured to perform the marking process 200 of the present invention for files. The bus module may establish a communication connection with one or more applications. It should be noted that, according to the method 200 for processing a file mark of the present invention, executed in a bus module of an operating system, a user can perform mark processing on a file in each application that establishes a communication connection with the bus module, classify and manage various files based on file marks, and after any application modifies an association relationship between a file and a mark, each application can obtain a latest association relationship between a file and a mark from the bus module, and provide the latest association relationship between a file and a mark to the user, so that the user can view or edit related types of files in an application classification manner.
FIG. 2 shows a flow diagram of a method 200 of mark processing a file according to one embodiment of the invention.
It should be noted that the computing device 100 includes a data storage device therein, and the bus module is communicatively connected to the data storage device and one or more applications, respectively.
A wide variety of files may be stored in the data storage of the computing device 100, and one or more files may also be stored in a folder in the form of an established folder. The file is, for example, a document, a picture, a video, etc., and the present invention is not limited to a specific type of file.
It should be noted that the method 200 for marking a file according to the present invention includes a marking process for a file and a marking process for a folder, that is, the file referred to in the description of the method 200 for marking a file according to the present invention may be implemented as a single file or as a folder including one or more files.
It should be noted that, based on the method 200 for processing a file mark of the present invention, a user can implement the mark processing on the file in one or more applications. Here, the marking process on the file is a process related to marking on the file, including marking the file, such as adding an association mark to the file, modifying a mark of the file, deleting a mark of the file, and the like; and sorting the files associated with the tags, such as acquiring or deleting the files corresponding to the tags, modifying the file names corresponding to the tags, and the like. In the specific implementation process, a user can mark files according to the use requirement, so that each file is associated with a corresponding mark. For example, a tag may be added to a file based on the type of file, the importance of the file, the priority of processing, and so forth. Therefore, the files are classified and sorted based on the file marks, and a user can conveniently and efficiently look up and process a plurality of files of the same type.
It should also be noted that the present invention is not limited to a specific kind of application establishing a communication connection with the bus module, for example, the application may include a file manager, an application for viewing videos, an application for viewing pictures, an application for editing documents, and the like, but the present invention is not limited to the types of applications listed above.
According to one embodiment, after a user initially adds a tag to one or more files (the current file does not have an associated tag) at an application request and establishes an association between the one or more files and the tag, the computing device 100 (bus module) may establish a file tag mapping table based on the association between each file and the tag and store the file tag mapping table in the data storage. Here, each entry in the file tag mapping table includes a file and a tag associated with the file. When the file tag is processed subsequently, for example, a tag is added to a new file or an associated tag of the file is updated or deleted, the bus module stores the association relationship between the new file and the tag in a file tag mapping table of the data storage device to update the file tag mapping table.
According to one embodiment, a bus module includes a bus interface, a tag processing component, and a data processing component. The marking processing component is connected with the data processing component, and the data processing component is in communication connection with the data storage device. And the marking processing component is in communication connection with one or more applications based on the bus interface. Here, the application establishes a communication connection with the bus module based on the bus interface and communicates with the tag processing component based on the bus interface by creating an interface object corresponding to the bus interface in the application and registering the interface object to the bus module via the bus interface. In this way, the application can subscribe to and receive messages broadcast by the tag processing component based on the bus interface based on the corresponding object path. And, the application may invoke the functionality of the tag processing component based on the bus interface to request the tag processing component to tag the file.
As shown in fig. 2, the method 200 begins at step S210.
In step S210, the tag processing component receives a tag processing request for a file by one or more applications, determines a target file, a tag associated with the target file, a processing type for requesting processing of the target file based on the processing request, and sends the target file, the tag, the processing type, and the processing type to the data processing component. Here, the one or more applications are applications that establish a communication connection with the bus module. The user may send a tag processing request for the file at any application communicatively coupled to the bus module to request tag processing components in the bus module to perform tag-related processing on the target file. The tag processing component may determine, based on a processing request by an application, a target file for which processing is requested, a tag associated with the target file, and a type of processing requested to process the target file.
It should be noted that the processing type of the file may be a marking process performed on the file, for example, a related mark is added to the file, a mark of modifying the file, a mark of deleting the file, and the like; or sorting the files associated with the tags, such as acquiring or deleting the file corresponding to the tag, and modifying the file name corresponding to the tag. That is, the marking of a file based on the method 200 of the present invention is the marking of a file, and it should be noted that the present invention is not limited to the specific types of processing for a file listed above.
After determining the target file requesting processing, the tag associated with the target file, and the processing type requesting processing of the target file, the tag processing component sends the target file, the tag associated with the target file, and the processing type to the data processing component for processing of the target file via the data processing component.
Subsequently, in step S220, the data processing component performs a marking process on the target file based on the determined process type. After the target file is marked, the association relationship between the target file and the mark may change, so the data processing component further updates the file mark mapping table in the data storage device based on the processed target file and the associated mark, and returns the update result of the file mark mapping table to the mark processing component.
According to the embodiment of the invention, the mark associated with the file comprises a plurality of marks, and each mark corresponds to one mark information. The data storage of the computing device 100 also stores a tag information list including a variety of tag information. The mark information includes, for example, a mark identification uniquely corresponding to the mark, and further includes information such as a mark name and a mark color. It should be noted that the sorting of files may be achieved by marking the files based on different marks, e.g. by associating the same mark to a plurality of files of each type, all files of that type may be processed synchronously based on the mark.
In one embodiment, the type of processing on the file includes updating a file flag, which includes adding a file flag, modifying a file flag. When the processing type is update file marking (add file marking, modify file marking), the target file may be marked according to the following method: the data storage device is queried as to whether new tag information corresponding to the update file tag is included in the tag information list (i.e., tag information corresponding to the new tag requested to be associated with the target file). And if so, associating the target file with a new mark, and updating the mark associated with the target file in the file mark mapping table. If not, the tag of the target file is not updated.
Specifically, when the processing type is to add a file mark, a new mark is added to the target file based on the new mark information, so as to associate the target file with the new mark. And when the processing type is the modification of the file mark, modifying the mark currently associated with the target file into a new mark based on the new mark information to realize the association of the target file with the new mark.
In one embodiment, before the target file associated tag is modified into a new tag, a method for modifying the target file tag is obtained, and then the target file associated tag is modified correspondingly based on the obtained method for modifying the target file tag.
According to one embodiment, when the processing type is to add a file tag, after a new tag is added to a target file, when a tag associated with the target file in a file tag mapping table is updated, it is first determined whether the target file is included in the file tag mapping table, and if not (indicating that the tag is added to the file for the first time), the target file and the associated new tag are added to the file tag mapping table to update the association relationship between the file and the tag recorded in the file tag mapping table.
Finally, in step S230, the tag processing component sends the update result of the file tag mapping table to each application, so that each application can obtain the association relationship between the updated file and the tag. In this way, when a user needs to view a file or edit the file during the application process, for example, the application may provide the latest association relationship between the file and the mark to the user, for example, the association relationship between the file and the mark is presented to the user in the application interface, so that the user may view or edit the corresponding file based on the association relationship between the file and the mark in a classified manner, which is convenient for the user to efficiently view and process multiple files of the same type.
In one embodiment, the application may be implemented as a video application, and associating corresponding tags with video class files may be implemented in each application based on the method 200 of the present invention, for example, associating a first tag with each movie class video file and associating a second tag with a literary movie class video. In this way, a user can conveniently view one or more movies-like videos classified into a category based on the first mark or view one or more literary and artistic movies-like videos classified into a category based on the second mark in the video application. It should be understood that movie-like video is associated with only the first mark; the literary film video file is associated with both the first tag and the second tag.
In one embodiment, the application may be implemented as a file manager, the file manager includes a tag management module, and an interface object corresponding to a bus interface of the bus module may be created in the tag management module, so that a communication connection between the application and the bus module is established based on the bus interface. It should be noted, however, that the present invention is not limited to a particular category of each application. The application may also be implemented as an application for viewing pictures, an application for editing documents, and the like.
According to one embodiment, the type of processing on the file further includes a delete file flag. Correspondingly, after determining the corresponding target file, the related mark and the processing type based on the marking processing request of the application to the file, the marking processing of the target file by the data processing component comprises the following steps: and deleting the mark currently associated with the target file.
According to one embodiment, the type of processing the file further includes obtaining or deleting the file corresponding to the token, modifying the file name corresponding to the token. Accordingly, after determining the corresponding target file, the related mark and the processing type based on the marking request of the application to the file, the marking processing of the target file by the data processing component comprises the following steps: acquire or delete target files (i.e., all target files corresponding to the tags), modify the names of the target files.
Furthermore, the type of processing on the file may also include modifying the name or color of the mark, obtaining all marks associated with the file, obtaining all marks that the present invention is adapted to provide.
In one embodiment, the operating system in the computing device 100 of the present invention may be implemented as a Linux operating system. However, the present invention is not limited to a particular type of operating system, and any type of operating system that can be configured to perform the method 200 of the present invention to implement the marking of files is within the scope of the present invention.
In one embodiment, the tag processing component 351 may be implemented as a tagmanager flag and the data processing component 352 may be implemented as a QSql.
FIG. 3 shows a schematic diagram of a document processing system 300 according to one embodiment of the invention. The file processing system 300 resides in the computing device 100.
As shown in FIG. 3, file processing system 300 includes one or more applications 310, a data storage device 320, and a filemark mapping table stored in data storage device 320.
The file processing system 300 further comprises a bus module 350 adapted to perform the method 200 of the present invention, the bus module 350 residing in the operating system of the computing device 100. The bus module 350 is communicatively coupled to the data storage device 320, the one or more applications 310, respectively.
In an embodiment of the present invention, the bus module 350 includes a tag processing component 351, a data processing component 352, and the tag processing component 351 may be communicatively coupled to one or more applications 310. Also, the tag processing component 351 is connected to the data processing component 352, and the data processing component 352 is communicatively connected to the data storage 320, in other words, the tag processing component 351 is communicatively connected to the data storage 320 through the data processing component 352.
In one embodiment, the tag processing component 351 may receive a processing request for a target file from one or more applications 310, determine the target file, a tag associated with the target file, a processing type based on the processing request, and send the target file, the tag associated with the target file, the processing type to the data processing component 352. The data processing component 352 marks the target file based on the processing type, updates the filemark mapping table in the data store 320 based on the processed target file and the associated mark, and returns the update result to the mark processing component 351 so that the mark processing component 351 sends the update result to each application 310.
In one embodiment, the bus module 350 includes a bus interface. The tag processing component 351 is communicatively coupled to one or more applications 310 based on a bus interface. Here, by creating an interface object corresponding to the bus interface in the application 310, the interface object is registered to the bus module 350 through the bus interface, so that the application 310 establishes a communication connection with the bus module 350 based on the bus interface and communicates with the tag processing component 351 based on the bus interface. In this way, the application 310 can subscribe to and receive messages broadcast by the tag processing component 351 based on the bus interface based on the corresponding object path. Also, the application 310 may call a function of the tag processing component 351 based on the bus interface, requesting the tag processing component 351 to perform tag processing on the file. In other words, the application 310 may request the token processing component 351 to process the file based on the bus interface. Also, the application 310 may receive the result of the update to the file tag mapping table sent by the tag processing component 351 based on the bus interface.
In one embodiment, the operating system in the computing device 100 of the present invention may be implemented as a Linux operating system. The tag processing component 351 may be implemented as tagmanager flag and the data processing component 352 may be implemented as QSql. However, the present invention is not limited thereto.
It should be noted that in the file processing system 300 of the present invention, the bus module 350 is adapted to perform the method 200 of the present invention. The mark processing component 351 of the bus module 350 is specifically configured to execute the methods of the foregoing steps S210 and S230, and the data processing component 352 is specifically configured to execute the method of the foregoing step S220. For the processing logic and functions of the marking processing component 351 and the data processing component 352, reference may be made to the foregoing description of the steps in the method 200, and details are not repeated here.
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 multilingual spam-text recognition method of the present invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, readable media may comprise 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 device in an embodiment may be adaptively changed and disposed 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 (9)

1. A marking processing method for files is executed in an operating system of a computing device, the computing device comprises a data storage device and one or more applications, a file marking mapping table and a marking information list comprising a plurality of kinds of marking information are stored in the data storage device, wherein the marking information comprises corresponding marking identifications, marking names and marking colors, the operating system comprises a bus module, the bus module comprises a bus interface, a marking processing component and a data processing component, the marking processing component is connected with the data storage device through the data processing component, and is connected with the one or more applications on the basis of the bus interface, wherein an interface object corresponding to the bus interface is created in the applications, and the interface object is registered to the bus module through the bus interface, the application is adapted to receive messages broadcast by the tag processing component over the bus interface based on the corresponding object path, the method comprising:
the marking processing component receives marking processing requests for files sent by one or more applications based on a bus interface, determines a target file, an associated mark and a processing type based on the processing requests and sends the target file, the associated mark and the processing type to the data processing component, wherein the applications comprise one or more of video applications, applications for watching pictures and applications for editing documents;
the data processing component marks the target file based on the processing type, updates a file mark mapping table in the data storage device based on the processed target file and the associated mark, and returns an updating result of the file mark mapping table to the mark processing component, wherein the processing type comprises marking the file and sorting the file which is associated with the mark;
and the mark processing component sends the update result of the file mark mapping table to each application based on the bus interface so that each application can acquire the association relationship between the updated file and the mark, and the corresponding file is classified and viewed or edited based on the association relationship between the file and the mark.
2. The method of claim 1, wherein the processing type includes updating a file flag;
the marking process of the target file comprises the following steps:
inquiring whether the mark information list comprises new mark information corresponding to the update file mark;
and if so, associating the target file with the new mark, and updating the mark associated with the target file in the file mark mapping table.
3. The method of claim 2, wherein said updating file tags comprises adding a file tag, modifying a file tag;
associating the target file with the new tag comprises:
when the processing type is file mark adding, adding a new mark for the target file based on the new mark information;
and when the processing type is the modified file mark, modifying the mark associated with the target file into a new mark based on the new mark information.
4. The method of claim 3, wherein when the processing type is adding a file tag, updating the tag associated with the target file in the filetag mapping table after adding a new tag to the target file comprises:
and judging whether the target file is included in the file mark mapping table or not, and if not, adding the target file and the associated new mark into the file mark mapping table.
5. The method as claimed in claim 3, wherein before modifying the tag associated with the target file to a new tag, further comprising the steps of:
a method of modifying a file marker is obtained.
6. The method of any one of claims 2-5,
each entry in the file tag mapping table includes a file and a tag associated with the file.
7. A file processing system, resident in a computing device, comprising:
one or more applications;
the data storage device is used for storing a file mark mapping table and a mark information list comprising a plurality of kinds of mark information, wherein the mark information comprises corresponding mark identification, mark name and mark color;
a bus module residing in an operating system of a computing device, the bus module being connected to a data storage device, one or more applications, respectively, the bus module comprising:
a bus interface;
the data processing component is connected with the data storage device; and
the mark processing component is connected with the data processing component, is connected with one or more applications through the bus interface, is suitable for receiving a processing request of the one or more applications for a target file based on the bus interface, determines the target file, an associated mark and a processing type based on the processing request, and sends the target file, the associated mark and the processing type to the data processing component, wherein an interface object corresponding to the bus interface is created in the applications, the interface object is registered to the bus module through the bus interface, the applications are suitable for receiving a message broadcasted by the mark processing component based on the bus interface based on a corresponding object path, and the applications comprise one or more of a video application, an application for watching pictures and an application for editing documents;
wherein the data processing component is adapted to mark the target file based on the processing type, and update a file mark mapping table in the data storage device based on the processed target file and the associated mark, and the processing type includes marking the file, and sorting the file associated with the mark; and adapted to return the result of the update to the file tag mapping table to the tag handling component, so that the tag handling component sends the result of the update to each application based on the bus interface; each application is adapted to sort view or edit the respective files based on the association of the updated files with the tags.
8. 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-6.
9. 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-6.
CN202011178042.6A 2020-10-29 2020-10-29 File marking processing method, file processing system and computing device Active CN112000625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011178042.6A CN112000625B (en) 2020-10-29 2020-10-29 File marking processing method, file processing system and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011178042.6A CN112000625B (en) 2020-10-29 2020-10-29 File marking processing method, file processing system and computing device

Publications (2)

Publication Number Publication Date
CN112000625A CN112000625A (en) 2020-11-27
CN112000625B true CN112000625B (en) 2022-03-18

Family

ID=73475773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011178042.6A Active CN112000625B (en) 2020-10-29 2020-10-29 File marking processing method, file processing system and computing device

Country Status (1)

Country Link
CN (1) CN112000625B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112578964A (en) * 2020-12-21 2021-03-30 维沃移动通信有限公司 Group creation method and device
CN113254395A (en) * 2021-05-14 2021-08-13 杭州圆图网络技术有限公司 File remarking method based on hash algorithm and file management system
CN115081396A (en) * 2022-05-12 2022-09-20 中国南方电网有限责任公司 Method and device for intelligently editing operation files
CN115509440A (en) * 2022-08-24 2022-12-23 阿里巴巴(中国)有限公司 Storage system and data processing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777251A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of file management method and device
CN107798082B (en) * 2017-10-16 2020-07-17 Oppo广东移动通信有限公司 File label processing method and device

Also Published As

Publication number Publication date
CN112000625A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN112000625B (en) File marking processing method, file processing system and computing device
US8412687B1 (en) System and method for delivering content to a communication device in a content delivery system
CN109325729B (en) Method and server for generating electronic contract
CN107786638B (en) Data processing method, device and system
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
US7102774B2 (en) Print processing system and method
US11201942B2 (en) System and method for providing caching and pre-fetch of assets/media
EP2857990A1 (en) File information previewing method and system
WO2022148055A1 (en) File retrieval method and computing device
CN1754166A (en) Navigation of the content space of a document set
CN107798082B (en) File label processing method and device
CN107748780B (en) Recovery method and device for file of recycle bin
CN108491715B (en) Terminal fingerprint database generation method and device and server
CN106227893A (en) A kind of file type acquisition methods and device
CN112835904A (en) Data processing method and data processing device
EP2103124A2 (en) Systems, methods, devices, and computer program products providing for reflective media
CN105183829A (en) Picture classification method and device
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
CN113886683A (en) Label cluster construction method and system, storage medium and electronic equipment
US20060212485A1 (en) Electronic file saving system
CN101042707A (en) Method and system for rapid searching and managing the information of name card
CN110516169B (en) Data display method, device and system and computing equipment
CN112883307A (en) Cache updating method and device and social network system
US11010346B2 (en) Methods and apparatus for managing access to file content
CN115037612B (en) Server configuration method, computing device and 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
GR01 Patent grant
GR01 Patent grant