CN114168546A - File library construction method and system, mobile terminal and computer storage medium - Google Patents

File library construction method and system, mobile terminal and computer storage medium Download PDF

Info

Publication number
CN114168546A
CN114168546A CN202111506704.2A CN202111506704A CN114168546A CN 114168546 A CN114168546 A CN 114168546A CN 202111506704 A CN202111506704 A CN 202111506704A CN 114168546 A CN114168546 A CN 114168546A
Authority
CN
China
Prior art keywords
file
storage space
local
information
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111506704.2A
Other languages
Chinese (zh)
Inventor
蒋博
朱雪生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zidoo Technology Co ltd
Original Assignee
Zidoo 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 Zidoo Technology Co ltd filed Critical Zidoo Technology Co ltd
Priority to CN202111506704.2A priority Critical patent/CN114168546A/en
Publication of CN114168546A publication Critical patent/CN114168546A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • 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/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

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)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The file library construction method comprises the steps that terminal equipment obtains a storage path of a file meeting a preset rule in a local storage space or a local area network storage space through a scanning algorithm, and stores the path into a local database of the terminal equipment; the terminal equipment acquires the file in the file storage path, analyzes file name information or file fingerprint information of the file, downloads matched file information on the network through the file name information or the file fingerprint information, and stores the file information in a local database. The invention also discloses a system and a mobile terminal computer storage medium. According to the file in the local storage space or the local area network storage space, the file name information or the file fingerprint information is intelligently identified, then the related file information is downloaded on the network, and finally the file is displayed to the user in a mode of combining pictures and texts.

Description

File library construction method and system, mobile terminal and computer storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and a system for constructing a file library, a mobile terminal, and a computer storage medium.
Background
In the current search technology, in the search process for file information, such as multimedia files, picture files, and even software package files, information matching is often performed after online search is performed on the basis of files existing in the search software. For the files stored in the local device, the general information matching is also based on the files existing in the local device in the search software to perform online information matching, and in this case, only the files in a specific local directory are subjected to online matching. In the prior art, a specific directory local to a device is usually scanned, and all target files need to be copied into the directory, so that the operation is complicated and inconvenient.
In the prior art, the search software does not scan the local area network or the external device when the local area network or the external device is not used. Therefore, how to realize intelligent scanning of files, and realize intelligent scanning of the whole local area network and external equipment, and improve the information matching rate is a problem which needs to be solved urgently at present.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method, a system and a mobile terminal for constructing a file library
Terminal and computer storage medium capable of implementing intelligence to local storage space or local network storage space
Scanning and information matching, in particular the main function of which is to scan for sharing in a local or local area network
The files are searched and downloaded by the network to match the corresponding information, and the information is simplified,
the beautiful mode is shown, thereby improving the use experience.
In a first aspect, an embodiment of the present application provides a file library construction method, which is applied to a terminal device side.
The method comprises the following steps: the terminal equipment obtains the local storage space or the local network storage space through the scanning algorithm
Storing the storage path of the file meeting the preset rule, and storing the path into a local database of the terminal equipment;
terminal equipment acquires a file in a file storage path and analyzes file name information or file fingerprint of the file
Information, downloading the matched file information on the network through file name information or file fingerprint information, and
and saving the file information to a local database.
For two identical files, user 1 named A1, user 2 named A2,
however, the file fingerprints of A1 and A2 are the same, and it is possible that a user does not have the name given to a file
Has definite semantic information, but can be interconnected by screening the file fingerprint information of the file
And downloading the related information of the files with the same file fingerprints on the network. This can improve the matching rate of the files,
if the file is directly stored in the database with the original file name, the generated database is chaotic,
Are chaotic and are also prone to duplicate files.
In the method of the first aspect, the terminal device may be a notebook computer for direct operation by the user
Brain or ordinary desktop computer equipment, or graphic workstation and audio for providing music on demand services
Music server, or intelligent wearable device, intelligent television and other types of media player and terminal equipment
The interconnection mode with the network includes a wired connection mode and a wireless connection mode. The method is not limited in application
The limit of the preparation type is that the use is wider and the adaptability is stronger.
With reference to the first aspect, the local storage space may be a memory of the terminal device, or may be a memory of the terminal device
External USB flash disk, mobile hard disk and other mobile storage devices; the storage space of the local area network can be connected to
And other network devices in the local area network, such as computers, mobile phones and other devices.
With reference to the first aspect, the file information is saved in the local database, or saved to a designated location
For example in a local area network database.
The file may include audio and/or video playback information, such as movies, television shows, music shows, songs
Songs, etc., such as files with the suffix of the file type of.mp 3/. MP4, etc. It is also possible to display information in a flat manner,
e.g., pictures, photographs, etc., such as files of the type JPG/. PNG, etc., suffixed. And computer program
Order installation information, for example software installation programs for general computer equipment, such as files with a suffix of the file type. exe, or software installation programs for mobile intelligent terminal equipment, such as files of the file type
The suffix is the file of apk.
With reference to the first aspect, a music library construction method is applied to a media player and a media player system
Obtaining the media player local storage space or the local area network storage space meeting the preset rule by the overscan algorithm
And saving the path to a local database of the media player, the media
The player obtains the music file in the music file storage path and analyzes the file name information of the music file or
Fingerprint information of music file, and music file name information or music file fingerprint information in network
And uploading and downloading the matched music file information, and storing the music file information to a local database.
The music file information is, for example: the music-type file information may be a tone associated therewith
Music information, artist information, album information, etc., and may include other music related information, such as audio
Sampling rate, format, etc. of the music. When the network does not have complete various information, the information can be selectively stored
One or more of the above file information, e.g. text introduction information for music-type files only
Then only this information needs to be saved. Therefore, the matching of the local file and the network file information can be effectively improved
The matching degree is downloaded without requiring the existence of fully matched information, and only the existence of partially matched information
And (6) downloading.
With reference to the first aspect, a music library system comprises a media player connected to a network, a local player
The storage space is connected with the media player, the local area network storage space is connected with the media player through the local area network,
the media player is provided with a music library construction module which is used for local storage space or local area network
Scanning the music files in the storage space according with the preset rule, constructing a music library, and packaging the music library
Including other data associated with the music file.
In connection with the first aspect, the library of documents may be one of a music library, a picture library, a video library, a software library, or the like
Or any combination of these, which are a subset of the library of documents.
For example: a combination of 'picture + music + video' or 'music + video' may form a media library,
the media library thus constructed is also a subset of the file library.
With reference to the first aspect, in some embodiments, the method further comprises the steps of: updating terminal equipment and notebook
Recording information of the connection state of the local storage space or the local area network storage space, and associating the storage path with the identifier information of the local storage space or the local area network storage space by the terminal equipment;
when the local storage space or the local network storage space is in an on-line state, all the local storage spaces and the local network storage space are empty
Files related to the storage space of the local area network are set to be visible;
when the local storage space or the local network storage space is in an off-line state, all the local storage spaces and the local network storage space are empty
Files related to the storage space of the local area network are set to be invisible;
when the path of the local storage space or the local network storage space is changed, the terminal equipment changes
And the later identification information is matched with the storage path of the file again.
In connection with the first aspect, when the terminal device is connected to the local storage space or the local network storage space,
the terminal equipment records the identification of the local storage space or the local network storage space and stores the identification to
File storage path in local database of terminal equipment and with local storage space or local network storage space
The paths are correlated. When the local storage space is a removable storage device connected to the terminal device, the terminal
Recording unique identifier UUID of the device for identifying the removable storage device into a local database, and associating the UUID with the removable storage device
The file storage paths in the dynamic storage device are associated. When the removable storage device is detached from the terminal device,
all files associated with the UUID will not be displayed to the user; when the removable storage device is re-associated with
When the terminal equipment is connected, all files associated with the UUID are displayed for the user again. Thereby lifting
The efficiency of updating and maintaining the file library is improved, the time cost is reduced, and repeated scanning is avoided.
The local storage space or local area network storage space connected with the terminal equipment can be 0, 1 or
Multiple and different states at different points in time, which requires a modification of the constructed library
And (4) new and maintenance. This puts a demand on the efficiency of the updated maintenance. Suppose a mobile hard disk passes USB3.0
The mobile hard disk is accessed to the terminal equipment, 1000 songs are stored in the mobile hard disk, and if the mobile hard disk is pulled out
Later, if the music library is not updated in time, the music library is invalid, the experience for the user is very poor, and if the music library is not updated in time, the music library is not updated in time
After the second access, the mobile hard disk is scanned again to obtain the music type files in the disk
The efficiency is too low and a large amount of hard disk IO resources are used up. The invention is realized by adding local storage space or
The state of the storage space of the local area network is judged, so that the maintenance efficiency of the music library is improved.
One can imagine an extreme case where a certain storage device is frequently online and offline, if at all
The storage device is scanned again on the whole disk, and the storage device is off-line after scanning is possibly finished, but the method of the invention can realize that the file is displayed to the user when the storage device is on-line, and the file is displayed to the user when the storage device is off-line
Shielding, when the file in the storage device is updated, only incremental updating is needed to be carried out on the database,
thereby improving efficiency.
In connection with the first aspect, the path of the local storage space or the local network storage space is changed
There are mainly two cases, one, where the local storage space or the local network storage space is disconnected from the terminal device,
secondly, the network location path of the local storage space or the local network storage space is modified. In both cases
In case, the terminal device saves the path of each file to its local database in advance, once the path is
The path is changed, the local database re-matches the original file path with the changed file path,
to update the path information and at the same time the terminal device will send a prompt for a path update to the user, which will be sent
Thus ensuring the original information to be used continuously, reducing the times of repeatedly downloading the file information and improving
And (4) matching efficiency.
With reference to the first aspect, in some embodiments, the method further comprises a sub-step of smart scanning: terminal device
When the local storage space or the local network storage space is scanned, the files in the directory are entered one by one
Line judgment; if the file conforms to the preset rule, acquiring a storage path of the file; in the case of a folder, the folder is,
continuously scanning the inside of the folder, and circularly scanning; when scanning, the terminal device stores the blank to the local memory
The inter-or local area network storage space provides the required security authentication information. Terminal equipment in scanning directory
When the file is stored, all files in the storage path of the file are identified and judged one by one, if the file is the file
A file of a preset format, or a file that is a known audio and/or video, picture, photograph or software file,
judging that the file belongs to the file to be identified, if the identified file is a folder, continuing to scan the file
And e, circularly scanning in a folder mode. This scanning will ensure that as many target documents as possible can be identified,
the target file can be accurately and comprehensively marked.
With reference to the first aspect, in some embodiments, the terminal device passes file name information of the file or
Before the file fingerprint information is downloaded on the network, the file fingerprint information can be inquired in advance in a local database
Whether the piece information has been downloaded. When the files in the terminal equipment are subjected to network information matching for a plurality of times, excluding
A file matched with the file information is very necessary. Avoids repeated matching, saves the scanning time,
the matching efficiency is improved.
In combination with the first aspect, in some embodiments, the file satisfying the preset rule is one or more of
Combinations of species: music type files, video type files, picture type files, software package type files.
With reference to the first aspect, in some embodiments, the terminal device obtains the file in the file storage path
And multi-thread acquisition is adopted. The file acquisition efficiency is improved.
In a second aspect, the present application provides a system implemented by a document library construction method. Is a system
The system comprises a terminal device interconnected with a network; local storage space connected with terminal equipment
Connecting; the local area network storage space is connected with the terminal equipment through a local area network; wherein,
the terminal equipment is provided with a file library construction module which stores a local storage space or a local area network
Scanning files in the storage space according with preset rules, and constructing a file library; the document library also comprises the documents
Other data associated with the piece.
In the system implementing the second aspect, the terminal device is preferably a pre-installed system, such as an android system, including but not limited to
The android system is limited, and the system can also be an IOS system, a microsoft system, a hong meng system and the like, which are not described herein.
In some embodiments, in combination with the second aspect, the terminal device accesses files of the storage space of the local area network
And carries an access password. So as to ensure that the file folder of the storage space of the local area network can be accessed every time, thereby improving the access
Asking for efficiency.
In a third aspect, the present application provides a computer storage medium storing an executable program, the executable program
The technical scheme has the following technical effects: the present application is based on locally stored documents, in particular books
Local storage space, e.g. removable storage device, and/or files, smart identification documents in local network storage space
Downloading related file information on the network after the file name information or the file fingerprint information, and finally, downloading the file information
The mode of picture and text is shown to users, compared with other prior art, the application has more intelligent file scanning
The method has the advantages of capability, multiple supporting devices and higher matching rate.
Drawings
FIG. 1 is a schematic flow diagram of an embodiment of the process of the present invention;
FIG. 2 is a schematic block diagram of an embodiment of the system of the present invention; when the program is executed by the processor, the matching method of the file information is realized.
Description of the drawings:
a terminal device 10; a local storage space 20; a local area network storage space 30; a mobile phone 21; mobile hard
A disc 22; a computer 23;
the objects, features, and advantages of the present invention will become further apparent from the following detailed description of the preferred embodiments, when read in conjunction with the accompanying drawings
And (4) explanation.
Detailed Description
To further explain the technical contents of the present invention, the following description is made with reference to the accompanying drawings. All in one
In the meantime, it should be noted that the contents and technical features of the technical solutions according to the present invention do not conflict with each other
In the case of the above, they may be used in combination with each other.
The technical terms related to the invention are specifically explained as follows:
in the present invention, the terms "first" and "second" do not denote any order or sequence, nor do they denote any order
The use of specific locations is for distinction only.
Referring to fig. 1 and 2, fig. 1 is a schematic flow chart of an embodiment of the method of the present invention, and fig. 2 is a schematic flow chart of the method of the present invention
The invention discloses a structural schematic diagram of a system implementation mode. The present embodiment provides a method for constructing a document library, which
The method comprises the following steps:
s101: the terminal device 10 obtains the local storage space or the local network storage space through the scanning algorithm
And storing the storage path of the file meeting the preset rule into a local database of the terminal equipment.
Wherein, the existing terminal equipment 10, the local storage space 20 and the local network storage space 30 are arranged in
The stored file is scanned by a scanning algorithm and the path is stored in local data of the terminal equipment
In the library, the file is preferably music type file, and can also be video type file and picture type file
Piece, package type file. The local storage space can be a memory carried by the terminal equipment or a memory carried by the terminal equipment
A removable storage device such as an external USB flash disk and a removable hard disk 22; the storage space of the local area network can be connected
And other network devices connected to the local area network, such as a computer 23, a mobile phone 21 and the like.
S102: the terminal equipment acquires the file in the file storage path and analyzes the file name information of the file or
And downloading the matched file information on the network through the file name information or the file fingerprint information, and storing the file information into a local database.
In one embodiment, the file name information is a file name or file characteristic information
When the file is a music type file, the file name of the scanned music type file is intelligently analyzed,
the real music name of the music type file is intelligently matched through the file name, and the real music name is used
Downloading music information, artist information, album information, and lyric information to a local number on a network by an end device
In a database. Other information, such as sampling rate, format, etc. may also be included
Or a plurality thereof. When the file is a picture type file, for example, the picture name or other characteristic information can be used in the network
Uploading or downloading picture information associated with picture files, e.g. photo albums by a certain artist making pictures
The library is convenient for a user to browse pictures or photos of a certain artist.
In one embodiment, the file name information or file fingerprint information is freely organized for the user
After the file is edited (the file fingerprint information may be MD5 value, hash value, etc.), the file is edited
Before searching the music type file information on the network, the music type file name can be processed to find out
The information of music name, artist and the like in the file name is only required to be successfully found out
Name and artist, the success of matching after web search can be very great, and finding file names is therefore an improvement
The key to the matching efficiency. Since each person named a music type file has different habits, it is used for fixing
The definite success rate of analyzing the file name by the fixed naming rule is very low, thereby providing the free collocation for the user
Naming rules for names, which are then used to parse file names, thus finding music from the file names
The probability of the exact name of the type file is greatly improved.
In one embodiment, the connection between the terminal equipment and the local storage space or the local network storage space is updated
Receiving the recorded information of state, the terminal device will store the path and the local storage space or the local network storage space
Is associated with the identifier information of (1). Because the removable storage device can be plugged and unplugged, whether the removable storage device needs to be plugged or not after each plugging
To scan again, the terminal device needs to make a decision to avoid re-scanning the scanned removable storage device
And (4) secondary scanning. E.g. music relating to the removable storage device when it is removed
The type file cannot be played, so that the type file does not need to be continuously displayed in a file library; when the equipment is again
When accessing, the scanned music type file should be displayed in time.
When the local storage space or the local area network storage space is in an online state, setting all files related to the local storage space or the local area network storage space to be visible; when local storage space or local area network storage
All files associated with the local storage space or the local network storage space when the space is in an off-line state
Set to invisible; when the path of the local storage space or the local network storage space changes, the terminal device
And re-matching the changed identification information with the storage path of the file. Through the steps, the local storage is realized
The storage space or the local area network storage space is connected or disconnected with the terminal equipment as long as
The files in the file can be scanned and connected again, and the files in the file can be connected with the local data of the terminal equipment
The libraries are matched immediately, repeated scanning of files is not needed, time cost is reduced, and repeated scanning is avoided.
Specifically, the terminal device can be connected with different local storage spaces, because the local storage spaces
Can be plugged at any time, so that each device needs to be marked with a unique identifier and the identifier is marked
Storing the file into a local database and simultaneously storing the file into a local storage space or a local network storage space
The path is associated, and the identification can be verified and the relative relation with the identification can be found when the local storage space is accessed next time
The data can be used for solving the data synchronization problem of the equipment and detecting the local storage space or the local area network storage
And the availability of the space is not related to the file storage path if the space is not available.
In the prior art, a standard removable storage device has a unique identifier when leaving factory
UUID which can be found by "blkid" under the command line, and by applying the principle, the UUID can be found
And easily acquiring the UUID of the removable storage device.
When the removable storage device (local storage space) is accessed, the terminal device stores the removable storage device
Storing the path, UUID, volume label and other information of the equipment into the database of the terminal equipment, and scanning by the terminal equipment
Number of terminal equipment storing scanned music type file relative information when the storage equipment is removable
Database ID, and cut off the path of the music type file, and save part of the path.
When the removable storage device is removed, all music type files are checked, of which
When the device id in the self-owned information is equal to the database id of the terminal device, the music type is determined
Files are removed from the list so that the music type files associated with the removed removable storage device are all of the same
Are no longer shown.
When the scanned removable storage device storing the music type file is accessed again, it is checked
If the mobile storage device information which is the same as the UUID of the accessed mobile storage device is found, the mobile storage device information is updated
The path of the storage device information and all database ids associated with this removable storage device information
The associated music type file is displayed so that when the scanned file is stored with the music type file
When the removable storage device is accessed again, the music type files associated with it are all displayed in a list.
Take the construction of a music library as an example. UUID value of certain movable storage equipment is
1b181cff-76ad-88bd-48fd-b60af580912c, there is a folder under the root directory of the disk
FileA, wherein the FileA is internally provided with a subfolder FileB which is internally provided with a subfolder FileC
Mp3, the file fingerprint of which is
17a5c2e34e60a9d1093bd06af0882c9f, assuming that only the removable storage device currently has access to
This document.
When the mobile storage device is accessed to the terminal device, the terminal device fingerprints the file
17a5c2e34e60a9d1093bd06af0882c9f,
Stored in a database record with ID 1b181cff-76ad-88bd-48fd-b60af580912c, and
and the ID of the relative path FileA \ FileB \ FileC \ abc of the file is stored in the database
1b181cff-76ad-88bd-48fd-b60af580912 c.
When the removable storage device is removed, the UUID value can not be found to be
1b181cff-76ad-88bd-48fd-b60af580912c, the database is populated with the device
The related data is shielded, and the information can be deleted or shielded during specific implementation, if the related data is shielded
The information is selected to be shielded, so that the existing data can be conveniently utilized when the mobile storage device is accessed again.
When the scanned removable storage device storing the music type file (UUID is
1b181cff-76ad-88bd-48fd-b60af580912 c) is accessed again, the files related to the device are accessed again
Can be displayed. This ensures high availability of data and avoids users looking up a music class
Type files, but the removable storage device has been removed and the music type file cannot be read.
In some embodiments, the local area network storage space is a connection between the terminal device and the local area network storage space
The method is a local area network shared file system based on an SMB/NFS protocol. The storage space of the local area network can also adopt the method
His sharing protocol, by its nature, is resource sharing within the local area network. Unlike local removable storage devices, the shared devices in the storage space of a local area network do not have unique identifiers and it is often desirable to detect that a shared device is
And no, available. The sharing device and each file therein have a corresponding path, and typically
This path does not change and therefore the path of the shared device can be taken as the identity of each shared device.
After selecting the storage space of the local area network, storing the path and the verification information of each sharing device to the terminal
In a database of the device, the process of scanning and storing music-type files and the external removable storage device
Similarly, no further description is provided herein. The storage space of the local area network is greatly influenced by the network and is along with IP or
The path changes due to changes in the file system in the server, so that the saved local area network is checked frequently
And if the path data of the storage space is valid, reminding or deleting in time.
In some embodiments, the terminal device fetches the file in the file storage path using multi-thread fetching,
the file acquisition efficiency is improved.
In some embodiments, the method further comprises the sub-step of smart scanning: terminal equipment is storing null to local
Judging the files in the directory one by one when scanning the storage space of the local area network; if text
If the file conforms to the preset rule, acquiring a storage path of the file; if the document is a folder, continuing to scan the document
Circularly scanning inside the part clamp; when scanning, the terminal device stores the data into the local storage space or the local area network
The storage space provides the required security authentication information.
For example, when the terminal device acquires the file, the terminal device identifies the file format according to the file
And presetting the format, and judging whether the file belongs to the file to be identified. According to some of the existing file formats,
multimedia files such as MP3/. MP4 with suffix, picture files such as JPG/. PNG with suffix, and the like
Program files for exe, handset application files for apk suffix, etc., e.g., files having known tones
Determining that the file belongs to the music type file if the file is a folder, and continuing to use the file if the file is a folder
Scanning the inside of the folder, screening appropriate target files for marking and recording, and improving the file identification accuracy
And (5) accuracy.
It is noted that the terminal device carries the access password when accessing the file of the local area network device.
The intelligent scanning of the file types mainly comprises the following steps:
1. scanning of local storage space:
the music type file scanning mode is that the files in the directory are listed one by one to be judged, and if the files are files, the files with known music format suffix names are filtered out; if the folder is a paper folder, the handle
The file list in the folder is searched, and all files are scanned out through recursion.
2. Scanning the storage space of the local area network:
the scanning of the storage space of the local area network is basically the same as the scanning of the local storage space except for the text
The manner of the piece. It should be noted that the storage space of the LAN has an access password, so that the scanning is performed
If the password is carried, otherwise, the password cannot be accessed.
3. Full disk scanning and specific directory scanning
Because there are many files in the storage space of the local area network, the full-disk scanning will spend a lot of time
While the user's music type files are typically stored in a particular directory organization, a directory scan is specified
Is necessary. Specific directory scan and full disk scan except for path difference and data saving
Except for the difference, the others are the same and will not be described herein.
4. Efficiency of scanning
The efficiency of the scanning is also a manifestation of the user experience. The implementation of the scanning is relatively simple, in order to
The efficiency is improved, and the solution can be realized by a multithreading method. Parallel and serial processing is required when multiple threads are used, which
A thread lock is added. The scanning of each thread can be run simultaneously, and the scanning is checked after the scanning is finished
Not all threads are scanned, and one thread must pass here. Record first during scanning
The total number of scanning threads is reduced by one after each scanning thread finishes scanning, and when the total number is reduced to be
Zero indicates that all scan threads have finished.
In some embodiments, the terminal device is configured to determine the file name information or the file fingerprint information of the file
Before downloading the file information on the network, whether the file information is downloaded or not needs to be inquired in a local database.
Searching for information of music type files from the web requires that music information, artist information, album information all be transmitted
Downloading to local places, wherein some pictures are large and downloading is slow, which causes that searching music information is very consumed
Then (c) is performed. The time-consuming method is reduced by not searching on the network if the music type file has been searched
Instead, the locally stored information is used directly. When matching music type files, the terminal device is checked first
The database has the information of the music type file, if yes, the id of the music type file information is inquired in the database by direct linking, if not, the database is searched on the network
Searching, storing the information in the database of the terminal equipment, generating a unique id, and selecting the music type
The information of the file is directly linked to the id, so that the data reuse is easily realized.
In some embodiments, when the terminal device is connected to a local storage space or a local network storage space,
the terminal equipment detects whether the file storage path is correct or not, and prompts when the file storage path is changed
And the user updates the path information and informs the local database to re-match the updated path information with the file information.
In combination with the first aspect, in some embodiments, the local storage space includes a local storage space implemented with the terminal device
A wire and/or wireless connection device, a local storage space can be connected with the removable storage device through a data wire,
The intelligent terminal can be connected with the terminal equipment through wifi, Bluetooth or other wireless networks
Removable storage devices, intelligent terminals, etc., the local storage space type is not described herein. Local area network storage
Storage space refers primarily to other computer storage devices within the local area network.
In a second aspect, the present application provides a system, implemented by a method for constructing a document library, comprising a web server
Network interconnected terminal devices; the local storage space is connected with the terminal equipment; office
The local area network storage space is connected with the terminal equipment through a local area network; wherein, finally
The end equipment is provided with a file library construction module which stores the local storage space or the local area network
Scanning files meeting preset rules in the space, and constructing a file library; the document library further comprises
Other data associated with the file.
When the file is a music type file, a music library is constructed by the file, and the music library comprises specific files
Music genre file of (1), music information associated with a particular music genre file, artist information, and music information,
Album information.
When the file is a photo type file, a photo library is constructed therefrom, such as a photo of an artist
And the manufactured picture library is convenient for a user to browse a certain artist picture or photo file.
It can also be used to build software libraries, e.g. to aggregate downloaded software package type files into one software
And the software library is convenient for maintaining various software packages and has the advantage of saving the outlet bandwidth for enterprises.
In some embodiments, the terminal device preassembly system is an android system. The android system is a preferred system of the application, one android device can be connected with different mobile storage devices for use and connection
Is convenient and easy to operate.
The technical solution of the present invention is essentially or contributes to the prior art or the technology thereof
All or part of the scheme may be embodied in the form of a software product, which stores a computer software product
In a storage medium, instructions are included for causing a computer device (which may be a personal computer)
Machine, server, network device, etc.) or processor (processor) to implement embodiments of the invention
All or a portion of the steps of the method described. And the aforementioned storage medium includes: u disk, mobile hard disk and read-only disk
Memory (ROM), Random Access Memory (RAM)
Memory), magnetic or optical disks, or other various media that can store program code.
In summary, the technical scheme of the application realizes the storage space of the local storage space or the local area network
Can intelligently identify the file name and the accurate name matched with the file name
The title searches file information through network, and finally presents the file information to users in a mode of combining pictures and texts, so that the users can listen to the file information
The music player can see more abundant information during music, and compared with other similar technology applications, the music player has the advantages that
The technical scheme has the advantages of more intelligent scanning, more supporting equipment and higher matching rate.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention
The invention is used for carrying out equivalent structure or equivalent process transformation, directly or indirectly, by utilizing the contents of the specification and the attached drawings
Indirect application is used in other related technical fields, and the same is included in the protection scope of the invention.

Claims (10)

1. A file library construction method is applied to a terminal device side, and is characterized by comprising the following steps:
the terminal equipment acquires a storage path of a file meeting a preset rule in a local storage space or a local network storage space through a scanning algorithm, and stores the path into a local database of the terminal equipment;
the terminal equipment acquires the file in the file storage path, analyzes file name information or file fingerprint information of the file, downloads matched file information on the network through the file name information or the file fingerprint information, and stores the file information in the local database.
2. The method of constructing a document library according to claim 1, further comprising the steps of:
updating the record information of the connection state of the terminal equipment and the local storage space or the local area network storage space, wherein the terminal equipment associates the storage path with the identifier information of the local storage space or the local area network storage space;
when the local storage space or the local area network storage space is in an online state, setting all files related to the local storage space or the local area network storage space to be visible;
when the local storage space or the local area network storage space is in an off-line state, setting all files related to the local storage space or the local area network storage space to be invisible;
when the path of the local storage space or the local network storage space is changed, the terminal equipment re-matches the changed identification information with the storage path of the file.
3. The document library construction method according to claim 1, further comprising a sub-step of intelligent scanning:
when the terminal equipment scans the local storage space or the local area network storage space, judging the files in the directory one by one; if the file conforms to the preset rule, acquiring a storage path of the file; if the folder is the file folder, continuing to scan the inside of the file folder, and circularly scanning; when scanning, the terminal equipment provides required security authentication information to the local storage space or the local network storage space.
4. The method of claim 1, wherein before the terminal device downloads file information over a network through file name information or file fingerprint information of the file, the method further comprises:
and inquiring whether the file information is downloaded in a local database.
5. The method for constructing a document library according to claim 1, wherein the document satisfying the preset rules is one or more of the following combinations: music type files, video type files, picture type files, software package type files.
6. The method according to claim 1, wherein the terminal device acquires the file in the file storage path by multi-thread acquisition.
7. A system, characterized by being implemented by the document library construction method of any one of claims 1 to 6, comprising:
a terminal device interconnected with a network;
the local storage space is connected with the terminal equipment;
the local area network storage space is connected with the terminal equipment through a local area network;
the terminal equipment is provided with a file library construction module, and the file library construction module scans files meeting preset rules in a local storage space or a local area network storage space and constructs a file library; the library of files also includes other data associated with the files.
8. The method for constructing the document library according to claim 7, wherein the terminal device preassembly system is an android system.
9. A mobile terminal, characterized in that the mobile terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a library building program stored in the memory to implement the steps of the library building method of any one of claims 1 to 6.
10. A computer storage medium, characterized in that an executable program is stored, which when executed by a processor, implements the file library construction method according to any one of claims 1 to 6.
CN202111506704.2A 2021-12-10 2021-12-10 File library construction method and system, mobile terminal and computer storage medium Pending CN114168546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111506704.2A CN114168546A (en) 2021-12-10 2021-12-10 File library construction method and system, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111506704.2A CN114168546A (en) 2021-12-10 2021-12-10 File library construction method and system, mobile terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN114168546A true CN114168546A (en) 2022-03-11

Family

ID=80485358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111506704.2A Pending CN114168546A (en) 2021-12-10 2021-12-10 File library construction method and system, mobile terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN114168546A (en)

Similar Documents

Publication Publication Date Title
US11741057B2 (en) Unified data object management system and the method
JP5005726B2 (en) Managing media files from multiple sources
US8176061B2 (en) Tracking digital assets on a distributed network
TWI498751B (en) Method and computer-readable storage device for computing environment representation
US9996549B2 (en) Method to construct a file system based on aggregated metadata from disparate sources
US8140474B2 (en) Aggregation of file/directory structures
US8914856B1 (en) Synchronization of networked storage systems and third party systems
RU2405267C2 (en) Method, device and system for selection of services and client applications server
JP4255373B2 (en) Management and synchronization application for network file systems
JP2019517042A (en) Providing access to hybrid applications offline
US7991767B2 (en) Method for providing a shared search index in a peer to peer network
JP6178867B2 (en) Provide content preview
US20130219050A1 (en) Cloud service access apparatus, cloud service access method, and cloud service access system
US9069771B2 (en) Music recognition method and system based on socialized music server
US20140136496A1 (en) System, method and non-transitory computer readable storage medium for supporting network file accessing and versioning with multiple protocols in a cloud storage server
US20110289121A1 (en) Metadata modifier and manager
US20090132542A1 (en) Peer-to-Peer Sharing in Media Management Software
US7917083B2 (en) Method and apparatus for identifying a piece of content
US20160085795A1 (en) Grouping equivalent content items
CN105765570A (en) Music identification
US20170180285A1 (en) Import content items from email
CN103902551A (en) Information processing method and device and control device
US20170060892A1 (en) Search-based shareable collections
US20140280303A1 (en) Replacing equivalent content items
CN114168546A (en) File library construction method and system, mobile terminal and computer 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