CN107967366A - File management method, USB flash disk and computer-readable recording medium - Google Patents
File management method, USB flash disk and computer-readable recording medium Download PDFInfo
- Publication number
- CN107967366A CN107967366A CN201711414376.7A CN201711414376A CN107967366A CN 107967366 A CN107967366 A CN 107967366A CN 201711414376 A CN201711414376 A CN 201711414376A CN 107967366 A CN107967366 A CN 107967366A
- Authority
- CN
- China
- Prior art keywords
- file
- usb flash
- flash disk
- fileinfo
- content
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- 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/13—File access structures, e.g. distributed indices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of file management method, USB flash disk and computer-readable recording medium, this document management method includes:When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction with the content, wherein the fileinfo includes storage address file identification and file content in the server;USB flash disk accesses server according to the storage address, file content corresponding with the file identification is downloaded from the server, and the file content is cached into USB flash disk.It is low that the present invention solves the file efficiency of management in existing package management file, the bad technical problem of user experience, and limitation of the file management on memory space is broken, drastically increase the file management efficiency of user, improve the usage experience of user, allow users to flexibly and comfortably carry out document manipulation, lift the usage experience of user.
Description
Technical field
The present invention relates to art file management technology field, more particularly to a kind of file management method, USB flash disk and computer-readable deposit
Storage media.
Background technology
With the development of internet, internet product " Dropbox " technology is also increasingly ripe, and Dropbox is that some network companies push away
The Online storage device of the file management facilities such as the storage for providing a user file that goes out, access, backup, shared, greatly place
User to the online file management efficiency of file.
But present Dropbox is mainly by being that the form of client or webpage client accesses, and need user whole
End (such as PC, television set) possesses network connecting function, if user terminal does not have network connection, Dropbox will lose work
With.And another storage device is USB flash disk, the file management of existing USB flash disk data all to memory space there are high request, and its
Storage form relies on hardware, if USB flash disk damages, the file stored in USB flash disk is by whole loss.
Therefore, how existing package management file improves file management there are larger limitation in storage form
Mode, improves the file management efficiency of user, is current urgent problem to be solved.
The content of the invention
It is a primary object of the present invention to provide a kind of file management method, USB flash disk and computer-readable recording medium, it is intended to
It is low to solve the file efficiency of management in existing package management file, the bad technical problem of user experience.
To achieve the above object, the embodiment of the present invention provides a kind of file management method, and the file management method includes:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction, wherein institute with the content
State the storage address that fileinfo includes file identification and file content in the server;
USB flash disk accesses server according to the storage address, is downloaded from the server corresponding with the file identification
File content, and the file content is cached into USB flash disk.
Preferably, it is described the file content is cached into step into USB flash disk after further include:
If USB flash disk detects the modification operation of file content, amended modification file is uploaded onto the server;
USB flash disk downloads corresponding second fileinfo of modification file from the server, and by second fileinfo
Preserved instead of the first fileinfo, first fileinfo is the corresponding fileinfo of file content before modification.
Preferably, the file management method further includes:
If USB flash disk detects store instruction, the attribute information of file to be stored corresponding with store instruction is obtained;
USB flash disk uploads onto the server attribute information, and file corresponding with the attribute information is downloaded from the server
Information simultaneously preserves;
During USB flash disk uploads onto the server the file to be stored.
Preferably, the file management method includes:
First USB flash disk obtains the 3rd fileinfo of the second USB flash disk;
First USB flash disk accesses server according to the 3rd fileinfo, and is downloaded and the 3rd file from the server
Corresponding 4th fileinfo of information, the 4th fileinfo is preserved instead of the 3rd fileinfo.
Preferably, the file management method includes:
If USB flash disk detects that the file of fileinfo deletes instruction, the fileinfo is deleted.
Preferably, the file management method includes:
If USB flash disk detects that fileinfo fails, the attribute information in extraction document information, and generates fileinfo reparation
Request;
USB flash disk sends fileinfo reparation request to server;
USB flash disk downloads information repair data corresponding with the fileinfo reparation request from the server, and according to
Information repair data repairs fileinfo, to obtain effective fileinfo.
In addition, to achieve the above object, the present invention also provides a kind of USB flash disk, the USB flash disk includes:Wireless communication module, storage
Device, processor, communication bus and the documentor being stored on the memory,
The communication bus is used for realization the communication connection between processor and memory;
The processor is used to perform the documentor, to realize following steps:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction, wherein institute with the content
State the storage address that fileinfo includes file identification and file content in the server;
USB flash disk accesses server according to the storage address, is downloaded from the server corresponding with the file identification
File content, and the file content is cached into USB flash disk.
Preferably, it is described the file content is cached into step into USB flash disk after further include:
If USB flash disk detects the modification operation of file content, amended modification file is uploaded onto the server;
USB flash disk downloads corresponding second fileinfo of modification file from the server, and by second fileinfo
Preserved instead of the first fileinfo, first fileinfo is the corresponding fileinfo of file content before modification.
Preferably, the file management method further includes:
If USB flash disk detects store instruction, the attribute information of file to be stored corresponding with store instruction is obtained;
USB flash disk uploads onto the server attribute information, and file corresponding with the attribute information is downloaded from the server
Information simultaneously preserves;
During USB flash disk uploads onto the server the file to be stored.
Preferably, the file management method includes:
First USB flash disk obtains the 3rd fileinfo of the second USB flash disk;
First USB flash disk accesses server according to the 3rd fileinfo, and is downloaded and the 3rd file from the server
Corresponding 4th fileinfo of information, the 4th fileinfo is preserved instead of the 3rd fileinfo.
Preferably, the file management method includes:
If USB flash disk detects that the file of fileinfo deletes instruction, the fileinfo is deleted.
Preferably, the file management method includes:
If USB flash disk detects that fileinfo fails, the attribute information in extraction document information, and generates fileinfo reparation
Request;
USB flash disk sends fileinfo reparation request to server;
USB flash disk downloads information repair data corresponding with the fileinfo reparation request from the server, and according to
Information repair data repairs fileinfo, to obtain effective fileinfo.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer-readable recording medium
Storage medium be stored with one either more than one program the one or more programs can by one or one with
On processor perform for:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction, wherein institute with the content
State the storage address that fileinfo includes file identification and file content in the server;
USB flash disk accesses server according to the storage address, is downloaded from the server corresponding with the file identification
File content, and the file content is cached into USB flash disk.
The present invention is by when USB flash disk access terminal, detecting whether that the content for receiving terminal reads instruction;If USB flash disk detects
Read and instruct to content, then obtain and read the corresponding fileinfo of instruction with the content, wherein the fileinfo includes text
The storage address of part mark and file content in the server;USB flash disk accesses server according to the storage address, from the clothes
It is engaged in downloading file content corresponding with the file identification in device, and the file content is cached into USB flash disk.The present invention solves
The file efficiency of management is low in existing package management file, and the bad technical problem of user experience, reduce existing
Package management file in the networking requirement of user terminal, and broken limitation of the file management on memory space, greatly
Ground improves the file management efficiency of user, improves the usage experience of user so that user can flexibly and comfortably carry out file
Management operation, lifts the usage experience of user.
Brief description of the drawings
Fig. 1 is the flow diagram of an embodiment in file management method of the present invention;
Fig. 2 is the flow diagram of another embodiment in file management method of the present invention;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 4 is a schematic diagram of a scenario of USB flash disk in the embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of file management method, in file management method first embodiment, with reference to Fig. 1, the text
Part management method includes:
Step S10, when USB flash disk access terminal, detects whether that the content for receiving terminal reads instruction;
The USB flash disk is portable storage device, and the terminal can be the main control terminal of USB flash disk, such as PC computers, television set
Etc..In USB flash disk access terminal, it can directly detect whether that the content for receiving terminal reads instruction, the content reads instruction
Refer to instructing for the expansion of fileinfo, that is, open the operational order performed by the file content of this document information association,
Such as fileinfo reference is video file, content reads instruction i.e. to the play instruction of video file.
Specifically, USB flash disk only can just work in the energized state, therefore generally require and be connected with each other with other-end,
Relying on the electric power support that other-end (such as PC hosts, television set etc.) provides can work orderly.
Step S20, if USB flash disk detects that content reads instruction, obtains file corresponding with content reading instruction and believes
Breath, wherein the fileinfo includes storage address file identification and file content in the server;
The fileinfo refers to the document authentication information of the representative file content stored in USB flash disk, equivalent to file chain
Connect, this document information includes at least herein below:The file attribute informations such as filename, file type, file size and correspondence
File storage address in server.What it is such as fileinfo reference is document files, and content reads instruction i.e. to document files
Show edit instruction etc..
After USB flash disk detects that content reads instruction, USB flash disk will be read instruction by content and get corresponding file letter
Breath.And the storage address of file identification and the file content associated with file identification is just being included in fileinfo.In USB flash disk
In, be provided with wireless communication module, which can be 4G network communication modules, in the case of energization can whenever and wherever possible with it is rear
Platform server establishes data communication channel, realizes being in communication with each other between terminal and server.USB flash disk by data communication channel,
The data exchange between server can be achieved.
Step S30, USB flash disk access server according to the storage address, are downloaded and the files-designated from the server
Know corresponding file content, and the file content is cached into USB flash disk.
Corresponding retain has corresponding file content to fileinfo in USB flash disk in the server, and interior detected by USB flash disk
Hold and read instruction, be that the read requests of file content in server are instructed.Read and instructed by content, USB flash disk is being taken
It is engaged in after the legal authorization of device, the file content that is mutually related on server with this document information can be directly downloaded.The file
The file type of content does not limit scope, can be video file, document files, music file or executable file etc.
Deng.
USB flash disk downloaded file content from server is stored directly in the storage unit of USB flash disk, and since USB flash disk is in step
What is detected in rapid S10 is that content reads instruction, rather than file download instructions, therefore file download process is to serve content reading
The preposition link of instruction fetch.After file content is downloaded in the storage unit of terminal by USB flash disk, automated execution content, which is read, to be referred to
Order, task is read to complete content.
It is understood that terminal reading file content is not necessarily required to terminal and completely downloads file content, lead to
Chang Di, it is assumed that when the memory capacity of file content in the server is larger, the mode of terminal downloading files content is to pass through segmentation
What storage was realized, i.e. file content can be divided into multiple data packets and download from a server terminal local in batches.For example, when text
When the file type of part content is video file, terminal can successively download the data packet that this document content is divided into different batches,
Often download after the data packet for completing a batch terminal can the position data packet perform content and read instruction, when the data packet
When reading finishes, then read the data packet of next group.
The present invention is by when USB flash disk access terminal, detecting whether that the content for receiving terminal reads instruction;If USB flash disk detects
Read and instruct to content, then obtain and read the corresponding fileinfo of instruction with the content, wherein the fileinfo includes text
The storage address of part mark and file content in the server;USB flash disk accesses server according to the storage address, from the clothes
It is engaged in downloading file content corresponding with the file identification in device, and the file content is cached into USB flash disk.The present invention solves
The file efficiency of management is low in existing package management file, and the bad technical problem of user experience, reduce existing
Package management file in the networking requirement of user terminal, and broken limitation of the file management on memory space, greatly
Ground improves the file management efficiency of user, improves the usage experience of user so that user can flexibly and comfortably carry out file
Management operation, lifts the usage experience of user.
Further, on the basis of file management method first embodiment of the present invention, file management side of the present invention is proposed
Method second embodiment, with reference to Fig. 2, difference lies in the terminal is based on content and reads instruction reading file with previous embodiment
Further included after the step of content:
Step S40, if USB flash disk detects the modification operation of file content, service is uploaded to by amended modification file
Device;
In actual life, user may be unsatisfied with file content, carry out edit-modify.Such as file content is text
Shelves text, user will carry out it adjustment editor of content format, then and the file content stored on USB flash disk will change,
And the file content matched on the server corresponding to the first fileinfo of this document content can't change, this meeting
Cause the file content on server and USB flash disk inconsistent, it is therefore necessary to be further improved.The method of the present embodiment is,
When USB flash disk detects the modification operation to file content, amended modification file is uploaded and is sent to server, for service
Device analyzes it improvement.
Step S50, USB flash disk download corresponding second fileinfo of modification file from the server, and by described second
Fileinfo is preserved instead of the first fileinfo, and first fileinfo is the corresponding file of file content before modification
Information.
First fileinfo refers to being stored in the fileinfo in terminal, and the second fileinfo refers to being specific to end
The fileinfo by the amended modification file of file content at end.After server is handled for modification file, meeting
One the second fileinfo based on modification file of terminal is fed back to, the second fileinfo can match modification on the server
The file content of new version afterwards, and not to be terminal need to be linked to the file content corresponding to the first original fileinfo
Content, therefore USB flash disk can delete the first fileinfo, and the second fileinfo to get is used as U instead of the first fileinfo
The link identification of amended modification file in disk.
Further, on the basis of file management method first embodiment of the present invention, file management side of the present invention is proposed
Method 3rd embodiment, difference lies in the file management method further includes with previous embodiment:
Step S60, if USB flash disk detects store instruction, obtains the attribute letter of file to be stored corresponding with store instruction
Breath;
Step S70, USB flash disk upload onto the server attribute information, are downloaded and the attribute information pair from the server
The fileinfo answered and preservation;
USB flash disk can equally store alternative document as storage device.When user performs file storage operations to USB flash disk
When, USB flash disk will detect store instruction.The store instruction is the store instruction for file to be stored, and at this time, USB flash disk will be by treating
Storage file inquires the attribute information of the file to be stored.The attribute information refers to that filename, file type, file are big
It is small to wait file attribute.Real file-storage device is not used as by USB flash disk in this present embodiment, substantially, USB flash disk is file
The terminal of storage, specific file content are stored on server, and therefore, USB flash disk, which needs to upload attribute information, to be sent
To server, so that server preserve the pretreatment of file to be stored.
After attribute information will upload onto the server, server will carry out storage address registration and files-designated to attribute information
Know and determine, generate corresponding fileinfo.And USB flash disk will download corresponding file after fileinfo generation from server
Information, and be saved in USB flash disk local.
Step S80, during USB flash disk uploads onto the server the file to be stored.
USB flash disk can inquire file to be stored position to be stored on the server by fileinfo, that is to say, that
After file to be stored is completely stored on server, USB flash disk can accurately be inquired and treated on server by fileinfo
Storage file.At this time, USB flash disk need to only preserve this document information, and file to be stored is sent to server, you can complete USB flash disk
File storage operations.
Further, on the basis of file management method first embodiment of the present invention, file management side of the present invention is proposed
Method fourth embodiment, difference lies in the file management method includes with previous embodiment:
Step S90, the first USB flash disk obtain the 3rd fileinfo of the second USB flash disk;
May there is a situation where that copy replicates file between different storage devices.In this example, it is assumed that have
One USB flash disk and the second USB flash disk, and the first USB flash disk has copied the 3rd fileinfo in the second USB flash disk, at this time, since the 3rd text message is
The mark of the first incidence relation in second USB flash disk and server between matched file destination content, therefore, even if the first USB flash disk
The 3rd fileinfo has been copied, can not also pass through the verification of server.Therefore the first USB flash disk needs to send the 3rd fileinfo to clothes
Business device, dissection process is carried out by server.
Step S100, the first USB flash disk according to the 3rd fileinfo access server, and from the server download with it is described
Corresponding 4th fileinfo of 3rd fileinfo, the 4th fileinfo is preserved instead of the 3rd fileinfo.
Include the second USB flash disk in 3rd fileinfo with matched file destination content in server first associates
System.After server dissection process, the 4th fileinfo is obtained, and the first USB flash disk can upload the 3rd fileinfo, wait to be serviced
Device generates the 4th fileinfo, and therefrom downloads the 4th fileinfo.4th fileinfo and the 3rd fileinfo are unique
Difference be exactly to include the first incidence relation between the first USB flash disk and file destination content in the 4th fileinfo.
3rd fileinfo can do nothing to help the file destination content that the first USB flash disk gets Corresponding matching, therefore the first USB flash disk will
The 3rd fileinfo is deleted, and receives the 4th fileinfo of server transmission, the 3rd text is replaced with the 4th fileinfo
Part information, such first USB flash disk can inquire file destination content in the server exactly.
Further, on the basis of file management method fourth embodiment of the present invention, file management side of the present invention is proposed
The 5th embodiment of method, difference lies in the file management method includes with previous embodiment:
Step S110, if USB flash disk detects that the file of fileinfo deletes instruction, deletes the fileinfo
The file deletes the deletion instruction for referring to that user performs for fileinfo, usually no longer needs this
Fileinfo, or fileinfo damage failure and user's no longer demand with the corresponding file content of this document information.
In the present invention, if USB flash disk receives file and deletes instruction, USB flash disk needs to fall this document information deletion, so as to terminate and server
Connection, the corresponding file content of this document information is also just obtained no longer from server.
Further, on the basis of the 5th embodiment of file management method of the present invention, file management side of the present invention is proposed
Method sixth embodiment, difference lies in the file management method includes with previous embodiment:
Step S120, if USB flash disk detects that fileinfo fails, the attribute information in extraction document information, and generate text
The reparation of part information is asked;
In the present embodiment, it is the security of safeguard file information, fileinfo can be set time-effectiveness, if lose
Effect property, then fileinfo is by as the fileinfo of failure.Certainly, the fileinfo of failure can also be fileinfo exception,
Either occur data entanglement or damage, or the device authentication failure etc. of fileinfo.Although the fileinfo of failure
Can not use, but still preserve this document information matched file content attribute information, such as the file of file content
The information such as name, file type, file size, and these information can determine whether sentencing for this document content as server
Disconnected foundation.Therefore the attribute information in USB flash disk meeting extraction document information, for generating fileinfo reparation request.The file letter
It is a kind of request instruction that USB flash disk repairs own files information that breath, which repairs request,.
Step S130, USB flash disk send fileinfo reparation request to server;
USB flash disk sends fileinfo reparation request to server, so that server carries out the verification of fileinfo.Due to text
Include the attribute information of file content, therefore verification reference data being used as server in part information reparation request.Service
Device can be by the analysis to attribute information, to determine whether there is the file being mutually matched with the attribute information in server database
Content, if so, also needing to verify USB flash disk.USB flash disk equipment also has certain mark action in itself, and server can be by U
Disc apparatus is verified, determines whether the USB flash disk equipment has the authority for accessing this document content.
Step S140, USB flash disk download information corresponding with the fileinfo reparation request from the server and repair number
According to, and fileinfo is repaired according to information repair data, to obtain effective fileinfo.
If the verification by server is asked in fileinfo reparation, then USB flash disk will receive the reparation of server transmission
Data, the repair data are the repair datas that fileinfo of the server based on USB flash disk provides.USB flash disk obtains the repair data, you can
Data reparation is carried out to the fileinfo to fail in storage unit, so as to obtain effective fileinfo.
It is the device structure schematic diagram for the hardware running environment that present invention method is related to reference to Fig. 3 and Fig. 4, Fig. 3,
Fig. 4 is a schematic diagram of a scenario of USB flash disk in the embodiment of the present invention.
As shown in figure 3, the USB flash disk can include:Wireless communication module, processor 1001, such as CPU, memory 1005, leads to
Believe bus 1002.Wherein, communication bus 1002 is used for realization the connection communication between processor 1001 and memory 1005.Storage
Device 1005 can be high-speed RAM memory or the memory (non-volatile memory) of stabilization, such as disk
Memory.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Alternatively, which can also include user interface, network interface, camera, (Radio Frequency, are penetrated RF
Frequently circuit), sensor, voicefrequency circuit, WiFi module etc..User interface can include display screen (Display), input unit
For example keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.Network interface is optional
Can include standard wireline interface and wireless interface (such as WI-FI interfaces).
It will be understood by those skilled in the art that the USB flash disk structure shown in Fig. 3 does not form the restriction to USB flash disk, can include
Than illustrating more or fewer components, some components or different components arrangement are either combined.
As shown in figure 3, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module and documentor.Operating system is management and the program for controlling USB flash disk hardware and software resource, supports file pipe
Manage the operation of program and other softwares and/or program.Network communication module be used for realization each component in the inside of memory 1005 it
Between communication, and with communicating in USB flash disk between other hardware and softwares.
In the USB flash disk shown in Fig. 3, processor 1001 is used to perform the documentor stored in memory 1005, real
Existing following steps:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction, wherein institute with the content
State the storage address that fileinfo includes file identification and file content in the server;
USB flash disk accesses server according to the storage address, is downloaded from the server corresponding with the file identification
File content, and the file content is cached into USB flash disk.
Further, it is described the file content is cached into step into USB flash disk after further include:
If USB flash disk detects the modification operation of file content, amended modification file is uploaded onto the server;
USB flash disk downloads corresponding second fileinfo of modification file from the server, and by second fileinfo
Preserved instead of the first fileinfo, first fileinfo is the corresponding fileinfo of file content before modification.
Further, the file management method further includes:
If USB flash disk detects store instruction, the attribute information of file to be stored corresponding with store instruction is obtained;
USB flash disk uploads onto the server attribute information, and file corresponding with the attribute information is downloaded from the server
Information simultaneously preserves;
During USB flash disk uploads onto the server the file to be stored.
Further, the file management method includes:
First USB flash disk obtains the 3rd fileinfo of the second USB flash disk;
First USB flash disk accesses server according to the 3rd fileinfo, and is downloaded and the 3rd file from the server
Corresponding 4th fileinfo of information, the 4th fileinfo is preserved instead of the 3rd fileinfo.
Further, the file management method includes:
If USB flash disk detects that the file of fileinfo deletes instruction, the fileinfo is deleted.
Further, the file management method includes:
If USB flash disk detects that fileinfo fails, the attribute information in extraction document information, and generates fileinfo reparation
Request;
USB flash disk sends fileinfo reparation request to server;
USB flash disk downloads information repair data corresponding with the fileinfo reparation request from the server, and according to
Information repair data repairs fileinfo, to obtain effective fileinfo.
The embodiment of USB flash disk of the present invention and each embodiment of above-mentioned file management method are essentially identical, no longer superfluous herein
State.
Present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium storage has one
Either more than one program the one or more programs can also be performed by one or more than one processor with
For:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction, wherein institute with the content
State the storage address that fileinfo includes file identification and file content in the server;
USB flash disk accesses server according to the storage address, is downloaded from the server corresponding with the file identification
File content, and the file content is cached into USB flash disk.
Computer-readable recording medium embodiment of the present invention and the basic phase of each embodiment of above-mentioned file management method
Together, details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of file management method, it is characterised in that the file management method includes:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction with the content, wherein the text
Part information includes storage address file identification and file content in the server;
USB flash disk accesses server according to the storage address, and file corresponding with the file identification is downloaded from the server
Content, and the file content is cached into USB flash disk.
2. file management method as claimed in claim 1, it is characterised in that described to cache the file content into USB flash disk
The step of after further include:
If USB flash disk detects the modification operation of file content, amended modification file is uploaded onto the server;
USB flash disk downloads corresponding second fileinfo of modification file from the server, and second fileinfo is replaced
First fileinfo is preserved, and first fileinfo is the corresponding fileinfo of file content before modification.
3. file management method as claimed in claim 1, it is characterised in that the file management method further includes:
If USB flash disk detects store instruction, the attribute information of file to be stored corresponding with store instruction is obtained;
USB flash disk uploads onto the server attribute information, and fileinfo corresponding with the attribute information is downloaded from the server
And preserve;
During USB flash disk uploads onto the server the file to be stored.
4. file management method as claimed in claim 1, it is characterised in that the file management method includes:
First USB flash disk obtains the 3rd fileinfo of the second USB flash disk;
First USB flash disk accesses server according to the 3rd fileinfo, and is downloaded and the 3rd fileinfo from the server
Corresponding 4th fileinfo, the 4th fileinfo is preserved instead of the 3rd fileinfo.
5. file management method as claimed in claim 4, it is characterised in that the file management method includes:
If USB flash disk detects that the file of fileinfo deletes instruction, the fileinfo is deleted.
6. the file management method as described in claim 1-5, it is characterised in that the file management method includes:
If USB flash disk detects that fileinfo fails, the attribute information in extraction document information, and generates fileinfo reparation and ask
Ask;
USB flash disk sends fileinfo reparation request to server;
USB flash disk downloads information repair data corresponding with the fileinfo reparation request from the server, and according to information
Repair data repairs fileinfo, to obtain effective fileinfo.
7. a kind of USB flash disk, it is characterised in that the USB flash disk includes:Wireless communication module, memory, processor, communication bus and
The documentor being stored on the memory, the processor be used for perform the documentor, with realize with
Lower step:
When USB flash disk access terminal, detect whether that the content for receiving terminal reads instruction;
If USB flash disk detects that content reads instruction, obtain and read the corresponding fileinfo of instruction with the content, wherein the text
Part information includes storage address file identification and file content in the server;
USB flash disk accesses server according to the storage address, and file corresponding with the file identification is downloaded from the server
Content, and the file content is cached into USB flash disk.
8. USB flash disk as claimed in claim 7, it is characterised in that reality is gone back when the documentor is performed by the processor
Existing following steps:
If USB flash disk detects the modification operation of file content, amended modification file is uploaded onto the server;
USB flash disk downloads corresponding second fileinfo of modification file from the server, and second fileinfo is replaced
First fileinfo is preserved, and first fileinfo is the corresponding fileinfo of file content before modification.
9. USB flash disk as claimed in claim 7, it is characterised in that reality is gone back when the documentor is performed by the processor
Now the step of file management method as any one of claim 3 to 6.
10. a kind of computer-readable recording medium, it is characterised in that file pipe is stored with the computer-readable recording medium
Program is managed, the file management as any one of claim 1 to 6 is realized when the documentor is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711414376.7A CN107967366B (en) | 2017-12-22 | 2017-12-22 | File management method, U disk and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711414376.7A CN107967366B (en) | 2017-12-22 | 2017-12-22 | File management method, U disk and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107967366A true CN107967366A (en) | 2018-04-27 |
CN107967366B CN107967366B (en) | 2022-03-01 |
Family
ID=61995853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711414376.7A Active CN107967366B (en) | 2017-12-22 | 2017-12-22 | File management method, U disk and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107967366B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114237719A (en) * | 2020-09-09 | 2022-03-25 | 中国联合网络通信集团有限公司 | USB flash disk identification method, system, computer equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070260606A1 (en) * | 2006-05-04 | 2007-11-08 | Dell Products L.P. | System and method for using a network file system mount from a remote management card |
CN101626376A (en) * | 2009-08-04 | 2010-01-13 | 中国联合网络通信集团有限公司 | Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV) |
CN101640702A (en) * | 2009-08-27 | 2010-02-03 | 深圳华为通信技术有限公司 | Portable storage method and device |
CN102271170A (en) * | 2010-06-02 | 2011-12-07 | 深圳Tcl新技术有限公司 | Method of providing server address for electronic product through mobile storage equipment |
CN103067480A (en) * | 2012-12-24 | 2013-04-24 | 珠海金山办公软件有限公司 | Synchronized method and system of network disk |
CN103488768A (en) * | 2013-09-27 | 2014-01-01 | Tcl集团股份有限公司 | File management method and file management system based on cloud computing |
CN103516709A (en) * | 2012-12-26 | 2014-01-15 | Tcl数码科技(深圳)有限责任公司 | USB device data remote access method and system |
US20140082154A1 (en) * | 2012-08-31 | 2014-03-20 | Tencent Technology (Shenzhen) Company Limited | File sharing method, terminal and relay server |
CN105005611A (en) * | 2015-07-10 | 2015-10-28 | 中国海洋大学 | File management system and file management method |
CN105100157A (en) * | 2014-05-15 | 2015-11-25 | 中兴通讯股份有限公司 | USB equipment mapping and interaction methods, apparatuses, cloud terminal, and cloud server |
WO2017092458A1 (en) * | 2015-12-04 | 2017-06-08 | 乐视控股(北京)有限公司 | Mobile terminal browser file transmission method and mobile terminal |
-
2017
- 2017-12-22 CN CN201711414376.7A patent/CN107967366B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070260606A1 (en) * | 2006-05-04 | 2007-11-08 | Dell Products L.P. | System and method for using a network file system mount from a remote management card |
CN101626376A (en) * | 2009-08-04 | 2010-01-13 | 中国联合网络通信集团有限公司 | Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV) |
CN101640702A (en) * | 2009-08-27 | 2010-02-03 | 深圳华为通信技术有限公司 | Portable storage method and device |
CN102271170A (en) * | 2010-06-02 | 2011-12-07 | 深圳Tcl新技术有限公司 | Method of providing server address for electronic product through mobile storage equipment |
US20140082154A1 (en) * | 2012-08-31 | 2014-03-20 | Tencent Technology (Shenzhen) Company Limited | File sharing method, terminal and relay server |
CN103067480A (en) * | 2012-12-24 | 2013-04-24 | 珠海金山办公软件有限公司 | Synchronized method and system of network disk |
CN103516709A (en) * | 2012-12-26 | 2014-01-15 | Tcl数码科技(深圳)有限责任公司 | USB device data remote access method and system |
CN103488768A (en) * | 2013-09-27 | 2014-01-01 | Tcl集团股份有限公司 | File management method and file management system based on cloud computing |
CN105100157A (en) * | 2014-05-15 | 2015-11-25 | 中兴通讯股份有限公司 | USB equipment mapping and interaction methods, apparatuses, cloud terminal, and cloud server |
CN105005611A (en) * | 2015-07-10 | 2015-10-28 | 中国海洋大学 | File management system and file management method |
WO2017092458A1 (en) * | 2015-12-04 | 2017-06-08 | 乐视控股(北京)有限公司 | Mobile terminal browser file transmission method and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114237719A (en) * | 2020-09-09 | 2022-03-25 | 中国联合网络通信集团有限公司 | USB flash disk identification method, system, computer equipment and storage medium |
CN114237719B (en) * | 2020-09-09 | 2023-11-28 | 中国联合网络通信集团有限公司 | USB flash disk identification method, system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107967366B (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052675A (en) | Blog management method, system and computer readable storage medium | |
CN103475682B (en) | File transfer method and file transfer equipment | |
US20140215620A1 (en) | System for Testing Computer Application | |
CN109829287A (en) | Api interface permission access method, equipment, storage medium and device | |
CN109284140B (en) | Configuration method and related equipment | |
CN106021327B (en) | A kind of Dropbox system for supporting multi-user to read while write and its read document method, written document method | |
CN111475483A (en) | Database migration method and device and computing equipment | |
CN107168765B (en) | Method and system for remotely compiling software | |
US20140157354A1 (en) | Securing Access to Resources on a Network | |
CN109587233A (en) | Cloudy Container Management method, equipment and computer readable storage medium | |
CN105450759A (en) | System mirror image management method and device | |
CN109889588B (en) | File acquisition method and device, computer equipment and storage medium | |
CN113133039B (en) | Performance test method and device of gateway system | |
CN109598427B (en) | Robot management method and device and electronic equipment | |
CN106302609A (en) | A kind of access method and device | |
CN110333876A (en) | A kind of data clearing method and control equipment | |
CN102841750B (en) | File opening method and device | |
US10324706B1 (en) | Automated software deployment for electromechanical systems | |
CN111176706A (en) | Terminal upgrading method and device, electronic equipment and storage medium | |
CN110597706A (en) | Method and device for testing application program interface data abnormity | |
CN112764830B (en) | Data migration method and system applied to localization substitution | |
CN111698281B (en) | Resource downloading method and device, electronic equipment and storage medium | |
CN107967366A (en) | File management method, USB flash disk and computer-readable recording medium | |
US7650392B1 (en) | Dynamic content processing in a reverse proxy service | |
CN106708494A (en) | JAR upgrading method and apparatus |
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 |