CN108255915A - File management method and device and machine-readable storage medium - Google Patents
File management method and device and machine-readable storage medium Download PDFInfo
- Publication number
- CN108255915A CN108255915A CN201710800183.9A CN201710800183A CN108255915A CN 108255915 A CN108255915 A CN 108255915A CN 201710800183 A CN201710800183 A CN 201710800183A CN 108255915 A CN108255915 A CN 108255915A
- Authority
- CN
- China
- Prior art keywords
- file
- managed
- label
- information
- tag
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007726 management method Methods 0.000 title abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 75
- 230000008569 process Effects 0.000 claims description 36
- 238000013507 mapping Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 235000008331 Pinus X rigitaeda Nutrition 0.000 description 1
- 235000011613 Pinus brutia Nutrition 0.000 description 1
- 241000018646 Pinus brutia Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
- G06F16/1824—Distributed file systems implemented using Network-attached Storage [NAS] architecture
- G06F16/1827—Management specifically adapted to NAS
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/122—File system administration, e.g. details of archiving or snapshots using management policies
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure provides a file management method, apparatus, and machine-readable storage medium, the method comprising: acquiring abstract information of a file to be managed; acquiring a file label of the file to be managed according to the abstract information; and managing the file to be managed according to the file label. By the technical scheme, the intelligent classification method can be provided, the aim of performing classification management on the files to be managed according to the file labels can be achieved, and convenience and efficiency of searching and using the files in the later stage can be improved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a file management method, apparatus, and machine-readable storage medium.
Background
Currently, with the popularization of terminal devices (e.g., mobile phones, tablets, PCs (Personal computers), and notebook computers), user data such as e-mails, texts, pictures, videos, and music are rapidly increasing, and it is important to use a convenient, cost-effective, and secure data storage method.
As a data storage manner, network storage can store user data in a network storage medium in a reasonable, safe and effective manner, and a user can access the user data in the network storage medium. Compared with the traditional mode (such as storing user data through a host or storing user data through a mobile hard disk), the network storage has the following advantages: the safety of user data is guaranteed through technologies such as redundancy backup and the like; and the user is allowed to access the user data at any time and any place, and the user data is accessed, so that the convenience of the user data is guaranteed.
Currently, Network Storage modes include NAS (Network Attached Storage), personal Network disk, and the like. However, neither NAS nor personal network disk can provide an intelligent classification method. For example, a personal network disk lacks a method for localized processing, and cannot provide an intelligent classification method when the internet is disconnected. The NAS focuses more on file management and backup storage functions, and there is no link of intelligent automatic processing on file contents, so that a convenient and fast intelligent classification method cannot be provided.
Disclosure of Invention
The present disclosure provides a file management method, the method comprising:
acquiring abstract information of a file to be managed;
acquiring a file label of the file to be managed according to the abstract information;
and managing the file to be managed according to the file label.
The present disclosure provides a file management apparatus, the apparatus comprising:
the first acquisition module is used for acquiring abstract information of a file to be managed;
the second acquisition module is used for acquiring the file label of the file to be managed according to the abstract information;
and the management module is used for managing the file to be managed according to the file label.
The present disclosure provides a machine-readable storage medium having stored thereon computer instructions that, when executed, perform the following:
acquiring abstract information of a file to be managed;
acquiring a file label of the file to be managed according to the abstract information;
and managing the file to be managed according to the file label.
Based on the above scheme, in the embodiment of the present disclosure, by obtaining the summary information of the file to be managed, obtaining the file tag of the file to be managed according to the summary information, and managing the file to be managed according to the file tag, an intelligent classification method can be provided, the purpose of performing classification management on the file to be managed according to the file tag can be achieved, and convenience and efficiency of searching and using the file in a later stage can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
FIG. 1 is a schematic diagram of an application scenario in one embodiment of the present disclosure;
FIGS. 2A-2C are flow diagrams of a file management method in one embodiment of the present disclosure;
FIG. 2D is a schematic illustration of a classification display in one embodiment of the present disclosure;
FIG. 2E is a flow diagram of a file management method in one embodiment of the present disclosure;
FIG. 3 is a block diagram of a file management apparatus according to an embodiment of the present disclosure;
fig. 4 is a hardware configuration diagram of a terminal device/network storage device in an embodiment of the present disclosure.
Detailed Description
The terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
Referring to fig. 1, a schematic view of an application scenario in the embodiment of the present disclosure is provided, and the method may be applied to a terminal device (e.g., a mobile phone, a tablet, a PC, a host, a notebook, etc.) and a network storage device, and is used to manage files to be managed (e.g., user data such as emails, texts, pictures, videos, and music). Different from the storage modes such as the NAS and the personal network disk, the network storage device provided in the embodiment of the present disclosure may provide a convenient and fast intelligent classification method, and in order to distinguish from the storage modes such as the NAS and the personal network disk, the network storage device may be named as a home private cloud disk, and the home private cloud disk provides an intelligent classification method.
Referring to fig. 2A, a flowchart of the file management method is shown, and the method can be applied to a terminal device or a network storage device. The file management method includes configuring an APP (Application program) for implementing file management on a terminal device or a network storage device, and implementing file management by the APP. Of course, a client for implementing file management may also be configured in the terminal device or the network storage device, and the file management is implemented by the client, which is not limited to this, and the following description will take the terminal device or the network storage device as an example.
Step 201, obtaining summary information of a file to be managed.
In one example, the process for "obtaining summary information of a file to be managed" may include, but is not limited to, the following ways: acquiring a database template corresponding to the file to be managed; reading the file information of the file to be managed through the database template; and acquiring the abstract information of the file to be managed according to the file information.
In one example, the process for "obtaining the database template corresponding to the file to be managed" may include, but is not limited to: determining the file type of the file to be managed according to the suffix of the file to be managed; acquiring a plurality of database templates corresponding to the file types; and acquiring the information point of the file to be managed and the information point of each database template in the plurality of database templates, and acquiring the database template corresponding to the file to be managed from the plurality of database templates according to the information point of the file to be managed and the information point of each database template.
Step 202, obtaining the file label of the file to be managed according to the summary information.
In an example, the process of "obtaining the file tag of the file to be managed according to the summary information" may include, but is not limited to, the following ways: inquiring a mapping table through the abstract information to obtain a file label corresponding to the abstract information, and determining the obtained file label as the file label of the file to be managed; the mapping table is used for recording the corresponding relation between the summary information and the file label.
Step 203, managing the file to be managed according to the file label.
In one example, the process of "managing the file to be managed according to the file tag" may include, but is not limited to, the following ways: if the file management method is applied to the terminal device, the terminal device can send the file tag to the network storage device, so that the network storage device classifies the file to be managed according to the file tag. Or, if the file management method is applied to a network storage device, the network storage device may directly classify the file to be managed according to the file tag.
In one example, the process for "the terminal device sends the file label to the network storage device" may include: modifying the label attribute of the file to be managed through the file label, and sending the file to be managed carrying the file label to the network storage device, namely, the file label is used as the content in the file to be managed and is integrated with the file to be managed; or sending the file tag and the file to be managed to a network storage device, wherein the file to be managed comprises a tag attribute, and the file tag is different from the tag attribute, that is, the file tag is independent from the file to be managed, and the file tag is transmitted separately.
Further, the process of "sending the file tag and the file to be managed to the network storage device" may include: and sending the label identification corresponding to the file label, the label name corresponding to the file label, the file identification corresponding to the file to be managed and the file to be managed to the network storage device.
In an example, after "sending the file tag and the file to be managed to the network storage device", when the file tag of the file to be managed changes, the tag identifier and the tag name corresponding to the changed file tag, and the file identifier corresponding to the file to be managed may also be sent to the network storage device.
In the above embodiment, the summary information includes, but is not limited to, one or any combination of the following: time information, location information, device information, file information; the file label includes but is not limited to one or any combination of the following: date information, region information, creation device, object category, object name.
Based on the above scheme, in the embodiment of the present disclosure, by obtaining the summary information of the file to be managed, obtaining the file tag of the file to be managed according to the summary information, and managing the file to be managed according to the file tag, an intelligent classification method can be provided, the purpose of performing classification management on the file to be managed according to the file tag can be achieved, and convenience and efficiency of searching and using the file in a later stage can be improved.
The following describes the file management method in detail with reference to specific application scenarios.
Referring to FIG. 2B, a flow chart of a file management method may include the steps of:
in step 211, the terminal device obtains summary information of the file to be managed.
After the user selects the file to be uploaded or backed up to the network storage device at the terminal device, the terminal device may determine the file as a file to be managed, and obtain the summary information of the file to be managed. The file to be managed may be a file composed of user data such as an electronic mail, a text, a picture, a video, and music.
In an example, for a process of "acquiring, by a terminal device, summary information of a file to be managed", an implementation flow thereof may be as shown in fig. 2C, where the implementation flow may include the following steps:
step 2111, the terminal equipment determines the file type of the file to be managed according to the suffix of the file to be managed.
For example, when the suffix of the file to be managed is JPG, the file type of the file to be managed may be a picture, when the suffix of the file to be managed is TXT, the file type of the file to be managed may be a text, and when the suffix of the file to be managed is AVI, the file type of the file to be managed may be a video. Of course, the correspondence between the suffix and the file type is only an example, and the correspondence is not limited.
Step 2112, the terminal device obtains a plurality of database templates corresponding to the file type.
The terminal equipment can maintain a large number of database templates, and each file type corresponds to a plurality of database templates. For example, a picture corresponds to database template A1-database template A100, a text corresponds to database template B1-database template B90, and a video corresponds to database template C1-database template C100. Based on this, after determining the file type of the file to be managed, the terminal device may acquire a plurality of database templates corresponding to the file type, for example, the database template corresponding to the picture is database template A1-database template a 100.
Step 2113, the terminal device obtains the information point of the file to be managed and obtains the information point of each database template in the plurality of database templates. Wherein, the above information points can be key information points.
In one example, the terminal device may maintain a large number of database templates, each of which includes a plurality of information points, i.e., a set of one or more sets of permutation and combination relationships of distances, interrelationships of the information points in the multidimensional space. For example, the database template a1 is a permutation and combination relationship of the distances and the interrelationships of the information points 1, 2, and 3 in the multidimensional space, the database template a2 is a permutation and combination relationship of the distances and the interrelationships of the information points 1, 2, and 4 in the multidimensional space, and so on.
Because each database template can comprise a plurality of information points, the terminal equipment can acquire the information points from each database template in the plurality of database templates after acquiring the plurality of database templates corresponding to the file type. Since the file to be managed may include a plurality of information points, the terminal device may also acquire the information points from the file to be managed. The characteristics of the information points can be appointed, and the information points in the file/database template to be managed are determined by analyzing the characteristics of the file/database template to be managed. For example, the feature of the appointment information point 1 is feature a, so if the feature in the file/database template to be managed includes feature a, it indicates that the file/database template to be managed includes information point 1.
For example, the information point may be a face information point, and a face feature may be agreed in advance, so that if the file/database template to be managed has the face feature, it is indicated that the file/database template to be managed includes the face information point. The information points may be eye information points, and the eye characteristics may be agreed in advance, so that if the file/database template to be managed has the eye characteristics, it is indicated that the file/database template to be managed includes the eye information points. In addition, the information points may also be hair information points, clothes information points, landscape information points, tree information points, bridge information points, building information points, and the like, and similarly, hair characteristics, clothes characteristics, landscape characteristics, tree characteristics, bridge characteristics, building characteristics, and the like may also be agreed, and whether the file/database template to be managed includes these information points is analyzed based on these characteristics, which is not described again for this analysis process. Of course, the above processes only give a few examples of the information points and the characteristics of the information points, and no detailed limitation is made to the above processes.
Step 2114, the terminal device obtains the database template corresponding to the file to be managed from the plurality of database templates according to the information point of the file to be managed and the information point of each database template in the plurality of database templates.
In one example, after the terminal device obtains the information point of the file to be managed and the information point of each database template in the plurality of database templates, the terminal device may further compare the similarity between the information point of the file to be managed and the information point of each database template, and determine the database template with the largest similarity as the database template corresponding to the file to be managed. The similarity between the information point of the file to be managed and the information point of each database template can be compared in the modes of feature clustering, training library matching and the like, and the similarity is not limited.
For example, the combination order of the plurality of information points of the file to be managed is X (e.g., the arrangement combination relationship of the information point 1, the information point 2 and the information point 3), the combination order of the plurality of information points of the database template a1 is Y1 (e.g., the arrangement combination relationship of the information point 1, the information point 2 and the information point 3), the combination order of the plurality of information points of the database template a2 is Y2 (e.g., the arrangement combination relationship of the information point 1, the information point 2 and the information point 4), the combination order of the plurality of information points of the database template A3 is Y3 (e.g., the arrangement combination relationship of the information point 1, the information point 3 and the information point 5), and so on. Based on this, the database template a1 may be determined as the database template to which the file to be managed corresponds, based on which the combination order of the plurality of information points of the file to be managed is the highest in similarity to the combination order of the plurality of information points of the database template a 1.
Step 2115, the terminal device reads the file information of the file to be managed through the database template.
The database is a data set for reasonably storing the associated structure and can comprise contents such as a table, a view, a storage process, a record, a field and an index, the database template is a template comprising the contents such as the table, the view, the storage process, the record, the field and the index, and file information of the file to be managed can be read through the database template, namely the content of the file to be managed is read. For example, if the database template is a template for reading personal information, if the personal information is included in a document to be managed (i.e., a picture), the personal information (i.e., the document information) can be read out and it is recognized that the document to be managed includes a person. If the database template is a template for reading fountain information, the fountain information (i.e., file information) can be read out if the file to be managed (i.e., picture) contains fountain information, and the file to be managed is identified to include a fountain. And so on.
In one example, the database template may be a relational database template, which is a database based on a relational database model, wherein data in the database is processed by concepts and methods such as set algebra and the like, and is organized into a set of tables with formal descriptive properties, and wherein data in the tables can be accessed or recalled in different ways without reorganizing the database tables. The relational database template is based on the relational database, and the file information of the file to be managed can be read through the relational database template, namely the content of the file to be managed is read, and the reading process is not limited.
Step 2116, the terminal device obtains the abstract information of the file to be managed according to the file information.
The file information of the file to be managed, that is, the content of the file to be managed, may obtain the summary information of the file to be managed through the file information of the file to be managed. The summary information includes but is not limited to one or any combination of the following: time information, location information, device information, the file information.
Taking the file to be managed as a picture as an example, the time information may be determined by the terminal device according to the picture shooting time, such as 2017-07-20; the location information may be determined by the terminal device according to a GPS (global positioning System) for picture taking, such as the state of the Hangzhou city; the device information may be determined by the terminal device according to the device type of the picture shot, such as a class a mobile phone or a class B mobile phone; the file information may be file information read by the terminal device from the file to be managed, such as a person, a fountain, a mountain, a person name, a person nickname, a fountain name, a mountain name, and the like. Of course, the above processes are only a few examples of time information, location information, device information, and file information, and the information is not limited.
In step 212, the terminal device obtains the file label of the file to be managed according to the summary information.
Specifically, the terminal device may query the mapping table through the summary information to obtain a file tag corresponding to the summary information, and determine the obtained file tag as the file tag of the file to be managed; the mapping table is used for recording a corresponding relationship between the summary information and a file label, and the file label includes but is not limited to one or any combination of the following: date information, region information, creation device, object category, object name.
As shown in table 1, an example of a mapping table is used to record the correspondence between the summary information and the file label.
TABLE 1
In one example, if the document to be managed includes an object (e.g., includes only one person), the document tag may include an object category and include one or more object names corresponding to the object category, such as the document tag including 2017-07-20, Hangzhou City, class A phone, the object category being "person" and the object name being "Zhang three". If the file to be managed comprises a plurality of objects (such as a person and a fountain, or a plurality of persons and the like), the file label can comprise a plurality of object categories and object names respectively corresponding to the object categories, such as the file label comprises 2017-07-20, a state city, a class A mobile phone, the object category is 'person', the object name is 'Zhang three', the object category is a fountain, the object name is 'Baozu spring', and the like.
In one example, the terminal device may generate a plurality of file tags according to 1 piece of summary information, generate 1 piece of file tag according to 1 piece of summary information, and generate 1 piece of file tag according to a plurality of pieces of summary information.
In step 213, the terminal device sends the file tag to the network storage device.
In one example, after acquiring the file tag of the file to be managed, the terminal device may directly send the file tag to the network storage device. Or, the file tags are displayed to the user through the UI interface, the user selects the file tags from the displayed file tags (for example, selects all or part of the file tags), and the terminal device sends the file tags selected by the user to the network storage device. Or, the terminal device may also send a file tag provided by the user (that is, a file tag actively provided by the user to the terminal device is a different process from the file tag obtained by the terminal device according to the summary information) to the network storage device.
In one example, the process for "the terminal device sends the file label to the network storage device" may include, but is not limited to, the following: in the first mode, the terminal device may modify the tag attribute of the file to be managed through the file tag, and send the file to be managed carrying the file tag to the network storage device, that is, the file tag is used as the content in the file to be managed and is integrated with the file to be managed. In a second mode, the terminal device may send the file tag and the file to be managed to the network storage device, where the file to be managed may include a tag attribute, and the file tag is different from the tag attribute, that is, the file tag is independent from the file to be managed, and the file tag is transmitted separately.
Compared with the first mode, in the first mode, the file tag is written into the file to be managed, namely the tag attribute of the file to be managed is modified, and in the second mode, an independent tag management scheme is used, namely the file to be managed is not modified, but an independent file tag is created, so that the advantage of the second mode is that: the files to be managed of the user can not be damaged; the management of a plurality of similar labels is convenient; the multi-level label management is convenient to carry out; and label management between the terminal equipment and the network storage equipment is facilitated.
The convenient management of a plurality of similar labels means that: and generating file labels with different descriptions according to the same abstract information, and sending the file labels to the network storage equipment. For example, a plurality of time-descriptive file tags are generated for picture X, such as file tag 1: beijing time 2017.7.2109: 30, file tag 2: new york time 2017.7.2021: 30, file tag 3: london time 2017.7.2102: 30.
in the file to be managed, the tag attribute usually can only carry one time tag, that is, the file tag 1, the file tag 2, and the file tag 3 cannot all be written into the tag attribute of the file to be managed, that is, multiple similar tag management cannot be performed. In the second mode, by using an independent tag management scheme, the file to be managed is not modified, but the file tag 1, the file tag 2 and the file tag 3 are directly sent to the network storage device, so that management of a plurality of similar tags can be performed.
The convenient multilevel label management means that: when a plurality of file tags exist in a file to be managed, the hierarchy of the file tags may be involved, that is, the plurality of file tags have a relationship between inclusion and attribution. For example, picture X has multiple file tags, file tag 1: landscape, file label 2: mount Huang, File Label 3: the guest is loose, so the relationship between picture X and the file label hierarchy can be as shown in table 2. However, the first method of writing the file tags into the files to be managed is only to record the file tags of the same hierarchy, and it is difficult to manage the file tags of different hierarchies. In the second mode, file tags of different levels can be managed.
TABLE 2
First-level label | Document tag 1: landscape | ||
Second grade label | File label 2: mount Huang | ||
Three-level label | File label 3: pine for welcoming guests |
In one example, for the file tag described above, a new file tag may be generated or an existing file tag may be used. For example, for file tags such as date information, region information, creation equipment, etc., new file tags may be produced in a uniform time/place/equipment type format; for the file labels such as object types, object names and the like, the content of the file to be managed is identified by a description method corresponding to the database template, so that the existing label in the database can be used; and for the content of the file to be managed which cannot be identified, no label is marked.
In one example, the objects in the plurality of files to be managed can be identified and analyzed by using data identification, deep learning and other technologies. If it is recognized that the objects of the plurality of files to be managed are the same, the file tags of the object names for the objects in the files to be managed are the same, that is, the file tags of the same object names are used. If it is recognized that the objects of the plurality of files to be managed are different, the file tags of the object names of the objects are different in the files to be managed, that is, the file tags of different object names are used.
For example, in the picture X, an object 1 (e.g., a face image of a user) exists, and the file tag 1 of the object name is "xiaoming". If it is recognized by the face recognition technology that the face image of the user also exists in the picture Y, the description object is the same, and therefore the file label 1 of the object name of the object is also "minuscule".
In one example, the process for "sending the file tag and the file to be managed to the network storage device" may include, but is not limited to: allocating a specific label identifier for each file label, allocating a specific file identifier for each file to be managed, and sending the label identifier corresponding to the file label, the label name corresponding to the file label, the file identifier corresponding to the file to be managed, and the file to be managed to the network storage device. For example, the terminal device may send the tag identifier corresponding to the file tag, the tag name corresponding to the file tag, the file identifier corresponding to the file to be managed, and the file to be managed to the network storage device through a message. The label identification, the label name and the file identification can be placed at fixed positions in the message, and the fixed positions are different from the placement positions of the files to be managed, so that the files to be managed are distinguished.
In an example, after the terminal device sends the tag identifier corresponding to the file tag, the tag name corresponding to the file tag, the file identifier corresponding to the file to be managed, and the file to be managed to the network storage device, when the file tag of the file to be managed changes (for example, a user modifies the file tag of the file to be managed), the terminal device may also send the tag identifier and the tag name corresponding to the changed file tag, and the file identifier corresponding to the file to be managed to the network storage device without transmitting the file to be managed.
After the terminal device sends the tag identifier corresponding to the file tag, the tag name corresponding to the file tag, the file identifier corresponding to the file to be managed, and the file to be managed to the network storage device, the network storage device may record the corresponding relationship between the tag identifier corresponding to the file tag, the tag name corresponding to the file tag, the file identifier corresponding to the file to be managed, and the file to be managed. Based on this, if the network storage device receives the label identifier and the label name corresponding to the changed file label and the file identifier corresponding to the file to be managed, the corresponding record can be queried through the file identifier corresponding to the file to be managed, and then the label identifier and the label name in the record can be modified into the changed label identifier and label name.
In step 214, the network storage device classifies the file to be managed according to the file tag.
In one example, the network storage device may store the file tag and the file to be managed after receiving the file tag and the file to be managed, such as storing the file tag and the file to be managed according to an actual location selected by a user. Then, the network storage device may sort and display the files to be managed according to the file tags, for example, filter a file list to be displayed according to the file tags, and present the file list to a user according to the sequence of the time axis, and for the files to be managed without the file tags, display the files to be managed in a unified manner in an "unmarked" file list. Fig. 2D is a schematic diagram illustrating the files to be managed according to the file tags.
In one example, synchronous management of file tags may also be performed between a plurality of terminal devices and a network storage device. For example, the terminal device a sends the file tag and the file to be managed to the network storage device, the network storage device stores the file tag and the file to be managed, and the file to be managed is classified and displayed according to the file tag, see the processing flow from step 211 to step 214, and will not be described repeatedly here.
And when the terminal equipment B and the terminal equipment C are connected to the network storage equipment, downloading the latest file tag list and the latest file index list from the network storage equipment, and displaying APP interfaces of the terminal equipment B and the terminal equipment C. If the terminal device B modifies the file label corresponding to the file X to be managed, the terminal device B sends the modified label identification and label name and the file identification corresponding to the file X to be managed to the network storage device, the network storage device can inquire corresponding records through the file identification corresponding to the file to be managed, and the label identification and label name in the records are modified into the changed label identification and label name. Therefore, when the terminal device A and the terminal device C refresh the page, the latest file tag list and the latest file index list are downloaded from the network storage device and are displayed on the APP interfaces of the terminal device A and the terminal device C.
In an example, the terminal device may further automatically generate a description of the picture album according to the content described by the file tag, or automatically screen out a plurality of pictures with similar file tags from the network storage device to automatically generate the picture album. For example, a 2017 sweep (album) may contain pictures with a 2017 time label, an object type label containing "landscape", and an object name label containing "me".
Based on the above scheme, in the embodiment of the present disclosure, by obtaining the summary information of the file to be managed, obtaining the file tag of the file to be managed according to the summary information, and managing the file to be managed according to the file tag, an intelligent classification method can be provided, the purpose of performing classification management on the file to be managed according to the file tag can be achieved, and convenience and efficiency of searching and using the file in a later stage can be improved.
Referring to fig. 2E, a flowchart of a file management method is shown, which may include the following steps:
step 221, the network storage device obtains summary information of the file to be managed.
The network storage device may determine, as the file to be managed, the file that has been uploaded to the network storage device by the terminal device, and acquire the summary information of the file to be managed.
In step 222, the network storage device obtains the file label of the file to be managed according to the summary information.
Step 223, the network storage device classifies the file to be managed according to the file label.
The processing procedure of step 221 is similar to that of step 211, the processing procedure of step 222 is similar to that of step 212, and the processing procedure of step 223 is similar to that of step 214, and therefore, the description thereof is omitted.
Based on the same application concept as the method, the embodiment of the present disclosure further provides a file management apparatus, where the file management apparatus may be applied to a terminal device or a network storage device, as shown in fig. 3, which is a structural diagram of the file management apparatus provided by the present disclosure, and the file management apparatus may include:
a first obtaining module 301, configured to obtain summary information of a file to be managed;
a second obtaining module 302, configured to obtain a file tag of the file to be managed according to the summary information;
and the management module 303 is configured to manage the file to be managed according to the file tag.
The first obtaining module 301 is specifically configured to obtain a database template corresponding to a file to be managed in a process of obtaining summary information of the file to be managed; reading the file information of the file to be managed through the database template; and acquiring the abstract information of the file to be managed according to the file information.
In an example, the first obtaining module 301 is specifically configured to determine a file type of the file to be managed according to a suffix of the file to be managed in a process of obtaining a database template corresponding to the file to be managed; then, acquiring a plurality of database templates corresponding to the file types; then, the information point of the file to be managed and the information point of each database template in the plurality of database templates can be obtained, and the database template corresponding to the file to be managed is obtained from the plurality of database templates according to the information point of the file to be managed and the information point of each database template.
The second obtaining module 302 is specifically configured to, in the process of obtaining the file tag of the file to be managed according to the summary information, obtain the file tag corresponding to the summary information by querying a mapping table through the summary information, and determine the obtained file tag as the file tag of the file to be managed;
the mapping table is used for recording the corresponding relation between the summary information and the file label.
In one example, the apparatus is applied to a terminal device or a network storage device;
the management module 303 is specifically configured to, in a process of managing the file to be managed according to the file tag, if the apparatus is applied to a terminal device, send the file tag to a network storage device, so that the network storage device classifies the file to be managed according to the file tag; and if the device is applied to network storage equipment, classifying the files to be managed according to the file labels.
In an example, the management module 303 is specifically configured to modify, by using the file tag, a tag attribute of the file to be managed in a process of sending the file tag to a network storage device, and send the file to be managed, which carries the file tag, to the network storage device; or sending the file label and the file to be managed to the network storage device, wherein the file to be managed comprises a label attribute, and the file label is different from the label attribute; further, in the process of sending the file tag and the file to be managed to the network storage device, the management module 303 is specifically configured to send a tag identifier corresponding to the file tag, a tag name corresponding to the file tag, a file identifier corresponding to the file to be managed, and the file to be managed to the network storage device; after the file tag and the file to be managed are sent to the network storage device, when the file tag of the file to be managed changes, the management module 303 is further configured to send the tag identifier and the tag name corresponding to the changed file tag, and the file identifier corresponding to the file to be managed to the network storage device.
In terms of hardware, a schematic diagram of a hardware architecture of the terminal device/the network storage device provided in the embodiment of the present disclosure may specifically refer to fig. 4. The method comprises the following steps: a machine-readable storage medium and a processor, wherein:
a machine-readable storage medium: the instruction code is stored.
A processor: the instruction codes stored in the machine-readable storage medium are communicated with the machine-readable storage medium, read and executed, and the file management operation disclosed by the above examples of the disclosure is realized.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Based on the same application concept as the method, the embodiment of the present disclosure further provides a machine-readable storage medium, which may be applied to a terminal device or a network storage device, where the machine-readable storage medium stores a plurality of computer instructions, and the computer instructions, when executed, perform the following processing:
acquiring abstract information of a file to be managed;
acquiring a file label of the file to be managed according to the abstract information;
and managing the file to be managed according to the file label.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the disclosed embodiments may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.
Claims (15)
1. A method of file management, the method comprising:
acquiring abstract information of a file to be managed;
acquiring a file label of the file to be managed according to the abstract information;
and managing the file to be managed according to the file label.
2. The method of claim 1,
the process of obtaining the summary information of the file to be managed specifically includes:
acquiring a database template corresponding to the file to be managed;
reading the file information of the file to be managed through the database template;
and acquiring the abstract information of the file to be managed according to the file information.
3. The method of claim 2,
the process of acquiring the database template corresponding to the file to be managed specifically comprises the following steps:
determining the file type of the file to be managed according to the suffix of the file to be managed;
acquiring a plurality of database templates corresponding to the file types;
and acquiring the information point of the file to be managed and the information point of each database template in the plurality of database templates, and acquiring the database template corresponding to the file to be managed from the plurality of database templates according to the information point of the file to be managed and the information point of each database template.
4. The method of claim 1,
the process of obtaining the file label of the file to be managed according to the summary information specifically includes:
inquiring a mapping table through the abstract information to obtain a file label corresponding to the abstract information, and determining the obtained file label as the file label of the file to be managed;
the mapping table is used for recording the corresponding relation between the summary information and the file label.
5. The method of claim 1,
the method is applied to terminal equipment or network storage equipment;
the process of managing the file to be managed according to the file tag specifically includes:
if the method is applied to the terminal equipment, the file label is sent to the network storage equipment, so that the network storage equipment classifies the file to be managed according to the file label; and if the method is applied to network storage equipment, classifying the files to be managed according to the file labels.
6. The method of claim 5,
the process of sending the file tag to the network storage device specifically includes:
modifying the label attribute of the file to be managed through the file label, and sending the file to be managed carrying the file label to the network storage device; or,
and sending the file label and the file to be managed to the network storage device, wherein the file to be managed comprises a label attribute, and the file label is different from the label attribute.
7. The method according to claim 6, wherein the process of sending the file tag and the file to be managed to the network storage device specifically includes:
sending the label identification corresponding to the file label, the label name corresponding to the file label, the file identification corresponding to the file to be managed and the file to be managed to the network storage device;
after the sending the file tag and the file to be managed to the network storage device, the method further includes: and when the file label of the file to be managed changes, sending the label identification and the label name corresponding to the changed file label and the file identification corresponding to the file to be managed to the network storage device.
8. The method according to any one of claims 1 to 7, wherein the summary information comprises one or any combination of the following: time information, location information, device information, file information;
the file label comprises one or any combination of the following components: date information, region information, creation device, object category, object name.
9. A file management apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring abstract information of a file to be managed;
the second acquisition module is used for acquiring the file label of the file to be managed according to the abstract information;
and the management module is used for managing the file to be managed according to the file label.
10. The apparatus of claim 9,
the first acquisition module is specifically used for acquiring a database template corresponding to a file to be managed in the process of acquiring abstract information of the file to be managed; reading the file information of the file to be managed through the database template; and acquiring the abstract information of the file to be managed according to the file information.
11. The apparatus according to claim 10, wherein the first obtaining module is specifically configured to determine a file type of the file to be managed according to a suffix of the file to be managed in a process of obtaining the database template corresponding to the file to be managed; acquiring a plurality of database templates corresponding to the file types; and acquiring the information point of the file to be managed and the information point of each database template in the plurality of database templates, and acquiring the database template corresponding to the file to be managed from the plurality of database templates according to the information point of the file to be managed and the information point of each database template.
12. The apparatus of claim 9,
the second obtaining module is specifically configured to, in a process of obtaining a file tag of the file to be managed according to the summary information, obtain a file tag corresponding to the summary information by querying a mapping table through the summary information, and determine the obtained file tag as the file tag of the file to be managed;
the mapping table is used for recording the corresponding relation between the summary information and the file label.
13. The apparatus of claim 9,
the device is applied to terminal equipment or network storage equipment;
the management module is specifically configured to, in a process of managing the file to be managed according to the file tag, send the file tag to a network storage device if the apparatus is applied to a terminal device, so that the network storage device classifies the file to be managed according to the file tag; and if the device is applied to network storage equipment, classifying the files to be managed according to the file labels.
14. The apparatus according to claim 13, wherein the management module is specifically configured to modify, by the file tag, a tag attribute of the file to be managed in a process of sending the file tag to a network storage device, and send the file to be managed, which carries the file tag, to the network storage device; or, the file label and the file to be managed are sent to the network storage device, the file to be managed comprises a label attribute, and the file label is different from the label attribute;
in the process of sending the file label and the file to be managed to the network storage device, the management module sends a label identifier corresponding to the file label, a label name corresponding to the file label, a file identifier corresponding to the file to be managed, and the file to be managed to the network storage device;
after the file label and the file to be managed are sent to the network storage device, when the file label of the file to be managed changes, the management module sends the label identification and the label name corresponding to the changed file label and the file identification corresponding to the file to be managed to the network storage device.
15. A machine-readable storage medium having stored thereon computer instructions that, when executed, perform the following:
acquiring abstract information of a file to be managed;
acquiring a file label of the file to be managed according to the abstract information;
and managing the file to be managed according to the file label.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800183.9A CN108255915B (en) | 2017-09-07 | 2017-09-07 | File management method and device and machine-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800183.9A CN108255915B (en) | 2017-09-07 | 2017-09-07 | File management method and device and machine-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108255915A true CN108255915A (en) | 2018-07-06 |
CN108255915B CN108255915B (en) | 2021-02-26 |
Family
ID=62722291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710800183.9A Active CN108255915B (en) | 2017-09-07 | 2017-09-07 | File management method and device and machine-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255915B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109902759A (en) * | 2019-03-12 | 2019-06-18 | 上海云从企业发展有限公司 | Pictures describe method and device |
CN109948238A (en) * | 2019-03-15 | 2019-06-28 | 中民筑友科技投资有限公司 | A kind of management method, device, system and the storage medium of assembled design document |
CN110008191A (en) * | 2019-04-20 | 2019-07-12 | 彭荣和 | A kind of Implementation Technology of efficient management file |
CN111309679A (en) * | 2020-04-02 | 2020-06-19 | 广东电网有限责任公司 | File management method, file indexing method and device |
CN111858486A (en) * | 2020-07-03 | 2020-10-30 | 北京天空卫士网络安全技术有限公司 | File classification method and device |
CN112214786A (en) * | 2019-07-09 | 2021-01-12 | 腾讯科技(深圳)有限公司 | File label processing method and device |
CN112597100A (en) * | 2020-09-17 | 2021-04-02 | 武汉大学 | File management method and device based on object proxy tag |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050041015A1 (en) * | 2003-08-22 | 2005-02-24 | Casio Computer Co., Ltd. | Electronic device, information display method, and information display program |
US20100306175A1 (en) * | 2009-01-28 | 2010-12-02 | Digitiliti, Inc. | File policy enforcement |
CN102147801A (en) * | 2010-02-09 | 2011-08-10 | 纬创资通股份有限公司 | Data capturing method for extensible markup language file and device |
CN104951514A (en) * | 2015-05-28 | 2015-09-30 | 努比亚技术有限公司 | Audio playing method and device |
CN105468785A (en) * | 2015-12-24 | 2016-04-06 | 张梅云 | Computer file management method |
CN106844468A (en) * | 2016-12-22 | 2017-06-13 | 航天恒星科技有限公司 | Towards the management method of multiple dimensioned multi-source mass remote sensing image data |
-
2017
- 2017-09-07 CN CN201710800183.9A patent/CN108255915B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050041015A1 (en) * | 2003-08-22 | 2005-02-24 | Casio Computer Co., Ltd. | Electronic device, information display method, and information display program |
US20100306175A1 (en) * | 2009-01-28 | 2010-12-02 | Digitiliti, Inc. | File policy enforcement |
CN102147801A (en) * | 2010-02-09 | 2011-08-10 | 纬创资通股份有限公司 | Data capturing method for extensible markup language file and device |
CN104951514A (en) * | 2015-05-28 | 2015-09-30 | 努比亚技术有限公司 | Audio playing method and device |
CN105468785A (en) * | 2015-12-24 | 2016-04-06 | 张梅云 | Computer file management method |
CN106844468A (en) * | 2016-12-22 | 2017-06-13 | 航天恒星科技有限公司 | Towards the management method of multiple dimensioned multi-source mass remote sensing image data |
Non-Patent Citations (1)
Title |
---|
吉向文: ""标签树模板在网页关键信息抽取及话题识别中的应用"", 《万方数据》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109902759A (en) * | 2019-03-12 | 2019-06-18 | 上海云从企业发展有限公司 | Pictures describe method and device |
CN109902759B (en) * | 2019-03-12 | 2021-03-30 | 恒睿(重庆)人工智能技术研究院有限公司 | Picture set description method and device |
CN109948238A (en) * | 2019-03-15 | 2019-06-28 | 中民筑友科技投资有限公司 | A kind of management method, device, system and the storage medium of assembled design document |
CN110008191A (en) * | 2019-04-20 | 2019-07-12 | 彭荣和 | A kind of Implementation Technology of efficient management file |
CN112214786A (en) * | 2019-07-09 | 2021-01-12 | 腾讯科技(深圳)有限公司 | File label processing method and device |
CN111309679A (en) * | 2020-04-02 | 2020-06-19 | 广东电网有限责任公司 | File management method, file indexing method and device |
CN111858486A (en) * | 2020-07-03 | 2020-10-30 | 北京天空卫士网络安全技术有限公司 | File classification method and device |
CN112597100A (en) * | 2020-09-17 | 2021-04-02 | 武汉大学 | File management method and device based on object proxy tag |
CN112597100B (en) * | 2020-09-17 | 2022-07-15 | 武汉大学 | File management method and device based on object proxy label |
Also Published As
Publication number | Publication date |
---|---|
CN108255915B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255915B (en) | File management method and device and machine-readable storage medium | |
US12001475B2 (en) | Mobile image search system | |
US20180365489A1 (en) | Automatically organizing images | |
US8886598B1 (en) | Tag-based synchronization | |
US20170011034A1 (en) | Computerized system and method for automatically associating metadata with media objects | |
JP2018170019A (en) | Method and apparatus for recognition and matching of objects depicted in images | |
US11334768B1 (en) | Ephemeral content management | |
US10331752B2 (en) | Methods and systems for determining query date ranges | |
CN103049515A (en) | Method, device and equipment for classifying application programs | |
CN106033418B (en) | Voice adding and playing method and device, and picture classifying and retrieving method and device | |
US10394966B2 (en) | Systems and methods for multi-protocol, multi-format universal searching | |
US11768871B2 (en) | Systems and methods for contextualizing computer vision generated tags using natural language processing | |
US20170192965A1 (en) | Method and apparatus for smart album generation | |
US20240143654A1 (en) | Systems and methods for determining whether to modify content | |
CN104750776A (en) | Accessing information content in a database platform using metadata | |
CN114610951A (en) | Data processing method and device, electronic equipment and readable storage medium | |
EP2680174A1 (en) | A method, a server, a system and a computer program product for copying data from a source server to a target server | |
WO2016183215A1 (en) | Electronic mail processing | |
CN113392068A (en) | Data processing method, device and system | |
CN102368264A (en) | Scene-based searching method and device | |
EP3616092A1 (en) | Media sharing based on identified physical objects | |
CN103440255A (en) | Method and device of map display | |
CN108268545B (en) | Method and device for establishing hierarchical user label library | |
CN112685557B (en) | Visual information resource management method and device | |
CN104216919A (en) | Method and system for perfecting electronic map data |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220507 Address after: 510555 100, room 406, No. 1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province Patentee after: Xinhuasan Intelligent Terminal Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |