CN109033152A - A kind of method and device of file redirection - Google Patents

A kind of method and device of file redirection Download PDF

Info

Publication number
CN109033152A
CN109033152A CN201810601898.6A CN201810601898A CN109033152A CN 109033152 A CN109033152 A CN 109033152A CN 201810601898 A CN201810601898 A CN 201810601898A CN 109033152 A CN109033152 A CN 109033152A
Authority
CN
China
Prior art keywords
file
virtual file
virtual
authentic document
directory tree
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
CN201810601898.6A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810601898.6A priority Critical patent/CN109033152A/en
Publication of CN109033152A publication Critical patent/CN109033152A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of method and device of file redirection, to realize the classification display function after file redirection to server.This method are as follows: the multiple authentic documents of acquisition for mobile terminal and the corresponding authentic document directory tree of the multiple authentic document;The mobile terminal generates multiple virtual files under virtual file directory tree and the virtual file directory tree according to the multiple authentic document and the authentic document directory tree, and the multiple virtual file and the multiple authentic document have corresponding relationship;The virtual file directory tree and the multiple virtual file are redirected to server by the mobile terminal.

Description

A kind of method and device of file redirection
Technical field
The invention relates to field of computer technology more particularly to a kind of method and devices of file redirection.
Background technique
File in the file system of mobile terminal can be by file redirection technology-mapped into server, Yong Huke Directly to operate the file on mobile terminal in the server, for example, checking, modifying, deleting etc. and operate.
Current file redirection technology is usually to map directly to the file of mobile terminal in server, on server It is shown that the file of all categories is enumerated together in mobile terminal.For example, being stored with picture category, video on mobile terminal Class, audio class and the different classes of file of document class, by existing file redirection technology, by built in mobile terminal or All Files in external memory map directly in server, cause user on the server to the file of redirection in this way Different classes of file can not be intuitively determined when being operated, and bring big inconvenience to operation.
To sum up, existing file redirection technology needs to be further improved.
Summary of the invention
The embodiment of the present application provides a kind of method and device of file redirection, and the file to solve mobile terminal is reset Can not classify the problem of showing when to server.
Specific technical solution provided by the embodiments of the present application is as follows:
In a first aspect, providing a kind of method of file redirection, the executing subject of this method can be mobile terminal, the party Method is mainly accomplished by the following way: obtaining multiple authentic documents and the corresponding authentic document catalogue of the multiple authentic document Tree generates virtual file directory tree and the virtual file mesh according to the multiple authentic document and the authentic document directory tree Multiple virtual files under record tree, are redirected to server for the virtual file directory tree and the multiple virtual file.Its In, the multiple virtual file and the multiple authentic document have corresponding relationship.By the way that virtual file directory tree is redirected To server, virtual file directory can be presented to the user by server by level, and the classification for realizing virtual file is presented, and be mentioned The high service quality redirected, facilitates the file operation experience for promoting user.
In a possible design, the mobile terminal generates the in virtual file directory tree according to following methods (N-1) grade virtual file directory: classifying to the multiple authentic document, according to resulting classification of classifying, generates the void (N-1) grade virtual file directory in quasi- file directory tree, wherein the virtual file directory tree has N grades of virtual files Catalogue, N are positive integer.In such manner, it is possible to realize that the classification of multiple virtual files is shown, user is facilitated to be quickly found out on the server Destination virtual file improves the quality of redirection, promotes the file operation experience of user.
In a possible design, the mobile terminal generates the N in virtual file directory tree according to following methods Grade virtual file directory: according to the afterbody file directory in the authentic document directory tree, the virtual file mesh is generated N grades of virtual file directories in record tree, the virtual file directory tree have N grades of virtual file directories, and N is positive integer.
Optionally, it can include but is not limited to generate N grades of virtual file directories using following two mode: the first: Afterbody file directory in the authentic document directory tree is determined as the N grades of virtual file directories, this mode The quantity of N grades of virtual file directories can be reduced.
Second, with the afterbody file directory of multiple identical names in the authentic document directory tree, and It, will be the multiple when the file directory of the multiple identical name belongs to the different file paths in the authentic document directory tree The file directory of the file directory renamed as difference name of identical name, by the afterbody file directory after renaming operation It is determined as N grades of virtual file directories, the file directory of the different names belongs to the N grades of virtual file directories.N grades The file directory name of virtual file directory is not born the same name, and user can create new virtual text under N grades of file directorys Part.
In a possible design, the mobile terminal receives file operation message from the server, according to file Operation information carries out corresponding file operation.Specifically, the file operation message opens the virtual file mesh for requesting The i-stage virtual file directory of tree is recorded, the mobile terminal is according to the file operation message to described in server return (i+1) grade virtual file directory of virtual file directory tree;Alternatively, the file operation message opens the void for requesting The N grades of virtual file directories of quasi- file directory tree, the mobile terminal is according to the file operation message to the server Return to the virtual file under the N grades of virtual file directories;Alternatively, the file operation message opens institute for requesting Virtual file is stated, the mobile terminal is corresponding to the server return virtual file according to the file operation message Authentic document;Wherein, the virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.It can take in this way Business device hierarchical shows virtual file directory and virtual file, improves the function of redirection, and promotes the file behaviour of user It experiences.
In a possible design, the mobile terminal receives file operation message, the file from the server Operation information carries out virtual file processing for requesting;The mobile terminal determines the void according to the file operation message Virtual route where the targeted destination virtual file of quasi- file process, the virtual route are used to indicate the destination virtual Virtual file directory tree where file is formed by path;The mobile terminal according to storage mapping relations, to the mesh Virtual route where marking virtual file carries out path integration, and the virtual route where obtaining the destination virtual file is corresponding True path, the true path are the authentic document directory tree where the corresponding target authentic document of the destination virtual file It is formed by path, the mapping relations characterize the relationship between multiple virtual routes and multiple true paths;It is described mobile whole End group carries out authentic document processing, the authentic document processing and the void to target authentic document in true path obtained Quasi- file process is corresponding.In this way by that can reduce in reorientation method in virtual files such as server side storage folders The memory space of server promotes the function of redirection and the file operation experience of user on this basis.
In a possible design, the virtual file directory tree has N grades of virtual file directories, and N is positive integer, institute Virtual file processing is stated to create virtual file in the N grades of virtual file directories, then the virtual file processing corresponds to The authentic document processing in the afterbody file directory in the authentic document directory tree create authentic document;Institute Virtual file processing is stated to delete virtual file, then the corresponding authentic document processing of the virtual file processing is to described Authentic document in true path is deleted;The virtual file processing is modification virtual file, then at the virtual file The corresponding authentic document processing is managed to modify to the authentic document in the true path;The virtual file processing To replicate virtual file, then the virtual file handles the corresponding authentic document processing as to true in the true path Real file is replicated.
In a possible design, mobile terminal saves the information of virtual file directory tree, and according to preservation Information feedback processing result.The information of virtual file directory tree includes: i-stage virtual file directory information, N grades of virtual texts The corresponding relationship of virtual route and true path where the information of virtual file under part catalogue, virtual file, wherein virtual The corresponding relationship of virtual route and true path where file includes: virtual route where the virtual file before updating and true The corresponding relationship of virtual route and true path where the corresponding relationship of physical circuit diameter and updated virtual file.I-stage is empty Quasi- file directory information includes: the file information under higher level's virtual file directory of i-stage, i.e. i-stage virtual file directory.
In a possible design, the classification includes at least any one of following: picture category, audio class, video Class, document class, compressed package class and installation kit class.
Second aspect, provides a kind of method of file redirection, and the executing subject of this method can be mobile terminal, the party Method is mainly accomplished by the following way: mobile terminal receives file operation message from server, is carried out according to file operation message Corresponding file operation.Specifically, the i-stage that the file operation message is used to request to open the virtual file directory tree is empty Quasi- file directory, the mobile terminal return to the virtual file directory tree to the server according to the file operation message (i+1) grade virtual file directory;Alternatively, the file operation message is used to request to open the virtual file directory tree N grades of virtual file directories, the mobile terminal return to the N grades of void to the server according to the file operation message The virtual file under quasi- file directory;Alternatively, the file operation message opens the virtual file for requesting, it is described Mobile terminal returns to the corresponding authentic document of the virtual file to the server according to the file operation message;Wherein, The virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.It can be shown in this way in server hierarchies grade Virtual file directory and virtual file improve the function of redirection, and promote the file operation experience of user.
In a possible design, the mobile terminal receives file operation message, the file from the server Operation information carries out virtual file processing for requesting;The mobile terminal determines the void according to the file operation message Virtual route where the targeted destination virtual file of quasi- file process, the virtual route are used to indicate the destination virtual Virtual file directory tree where file is formed by path;The mobile terminal according to storage mapping relations, to the mesh Virtual route where marking virtual file carries out path integration, and the virtual route where obtaining the destination virtual file is corresponding True path, the true path are the authentic document directory tree where the corresponding target authentic document of the destination virtual file It is formed by path, the mapping relations characterize the relationship between multiple virtual routes and multiple true paths;It is described mobile whole End group carries out authentic document processing, the authentic document processing and the void to target authentic document in true path obtained Quasi- file process is corresponding.In this way by that can reduce in reorientation method in virtual files such as server side storage folders The memory space of server promotes the function of redirection and the file operation experience of user on this basis.
In a possible design, the virtual file directory tree has N grades of virtual file directories, and N is positive integer, institute Virtual file processing is stated to create virtual file in the N grades of virtual file directories, then the virtual file processing corresponds to The authentic document processing in the afterbody file directory in the authentic document directory tree create authentic document;Institute Virtual file processing is stated to delete virtual file, then the corresponding authentic document processing of the virtual file processing is to described Authentic document in true path is deleted;The virtual file processing is modification virtual file, then at the virtual file The corresponding authentic document processing is managed to modify to the authentic document in the true path;The virtual file processing To replicate virtual file, then the virtual file handles the corresponding authentic document processing as to true in the true path Real file is replicated.
In a possible design, in a possible design, mobile terminal is by the information of virtual file directory tree It is saved, and according to the information feedback processing result of preservation.The information of virtual file directory tree includes: i-stage virtual file Virtual route and true path where directory information, the information of virtual file under N grades of virtual file directories, virtual file Corresponding relationship, wherein the corresponding relationship of virtual route and true path where virtual file include: update before virtual text The corresponding relationship of virtual route and true path where part and virtual route and true road where updated virtual file The corresponding relationship of diameter.I-stage virtual file directory information includes: the file information under higher level's virtual file directory of i-stage, i.e., I-stage virtual file directory.
Multiple authentic documents and the corresponding authentic document directory tree of the multiple authentic document are obtained, according to the multiple true Real file and the authentic document directory tree generate multiple virtual under virtual file directory tree and the virtual file directory tree The virtual file directory tree and the multiple virtual file are redirected to server by file.Wherein, the multiple virtual text Part and the multiple authentic document have corresponding relationship.By the way that virtual file directory tree is redirected to server, server can Virtual file directory to be presented to the user by level, the classification for realizing virtual file is presented, and improves the service of redirection Quality facilitates the file operation experience for promoting user.
In a possible design, the mobile terminal generates the in virtual file directory tree according to following methods (N-1) grade virtual file directory: classifying to the multiple authentic document, according to resulting classification of classifying, generates the void (N-1) grade virtual file directory in quasi- file directory tree, wherein the virtual file directory tree has N grades of virtual files Catalogue, N are positive integer.In such manner, it is possible to realize that the classification of multiple virtual files is shown, user is facilitated to be quickly found out on the server Destination virtual file improves the quality of redirection, promotes the file operation experience of user.
In a possible design, the mobile terminal generates the N in virtual file directory tree according to following methods Grade virtual file directory: according to the afterbody file directory in the authentic document directory tree, the virtual file mesh is generated N grades of virtual file directories in record tree, the virtual file directory tree have N grades of virtual file directories, and N is positive integer.
Optionally, it can include but is not limited to generate N grades of virtual file directories using following two mode: the first: Afterbody file directory in the authentic document directory tree is determined as the N grades of virtual file directories, this mode The quantity of N grades of virtual file directories can be reduced.
Second, with the afterbody file directory of multiple identical names in the authentic document directory tree, and It, will be the multiple when the file directory of the multiple identical name belongs to the different file paths in the authentic document directory tree The file directory of the file directory renamed as difference name of identical name, by the afterbody file directory after renaming operation It is determined as N grades of virtual file directories, the file directory of the different names belongs to the N grades of virtual file directories.N grades The file directory name of virtual file directory is not born the same name, and user can create new virtual text under N grades of file directorys Part.
In a possible design, the classification includes at least any one of following: picture category, audio class, video Class, document class, compressed package class and installation kit class.
The third aspect provides a kind of device of file redirection, which, which has, realizes above-mentioned first aspect, second party Face, first aspect it is any it is possible design and second aspect any possible design in mobile terminal behavior function Energy.The function can also execute corresponding software realization by hardware realization by hardware.The hardware or software package Include one or more modules corresponding with above-mentioned function.
In a possible design, which can be chip or integrated circuit.
In a possible design, which includes memory and processor, and memory is stored with batch processing, processing Device is used to execute the program of memory storage, and when program is performed, described device can execute above-mentioned first aspect, second party Face, first aspect it is any it is possible design, second aspect any possible design described in method.
In a possible design, which further includes transceiver, for being communicated between the device and server.
In a possible design, which is mobile terminal.
Fourth aspect provides a kind of chip, which is connected with memory or the chip includes memory, for reading And the software program stored in the memory is executed, to realize such as above-mentioned first aspect, second aspect, any of first aspect Method described in the possible design of kind and any possible design of second aspect.
5th aspect, provides a kind of communication system, which includes mobile terminal and server, and the movement is eventually End is for executing such as above-mentioned first aspect, second aspect, any of any possible design and second aspect of first aspect Method described in the possible design of kind.
6th aspect, provides a kind of computer storage medium, is stored with computer program, which includes being used for Execute the instruction of method in any possible design of above-mentioned various aspects and various aspects.
7th aspect, provides a kind of computer program product, produces when computer reads and executes the computer program When product, so that computer executes method described in any possible design of above-mentioned various aspects and various aspects.
Detailed description of the invention
Fig. 1 is application system configuration diagram in the embodiment of the present application;
Fig. 2 is the structural schematic diagram of mobile terminal in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of server in the embodiment of the present application;
Fig. 4 is the method flow schematic diagram redirected in the embodiment of the present application;
Fig. 5 is the generation method schematic diagram of virtual file directory tree in the embodiment of the present application;
Fig. 6 is the browsing process schematic diagram of virtual file in the embodiment of the present application;
Fig. 7 is the structural schematic diagram of authentic document directory tree in the embodiment of the present application;
Fig. 8 is the structural schematic diagram of virtual file directory tree in the embodiment of the present application;
Fig. 9 is the information schematic diagram of virtual file directory tree in the embodiment of the present application;
Figure 10 is that the corresponding relationship of the virtual file and authentic document in the embodiment of the present application under virtual file directory tree shows It is intended to;
Figure 11 is the correspondence diagram of virtual file directory and authentic document catalogue in the embodiment of the present application;
Figure 12 is that virtual file directory schematic diagram in the second level is presented in the embodiment of the present application;
Figure 13 is that third level virtual file directory schematic diagram is presented in the embodiment of the present application;
Figure 14 is the schematic diagram that virtual file is presented in the embodiment of the present application;
Figure 15 is one of the apparatus structure schematic diagram of file redirection in the embodiment of the present application;
Figure 16 is two of the apparatus structure schematic diagram of file redirection in the embodiment of the present application.
Specific embodiment
The application provides a kind of method and device of file redirection, to by the file redirection of mobile terminal to virtual Classification is carried out when machine to show.Wherein, method and apparatus are based on same or similar design, therefore the implementation of apparatus and method can With cross-reference, overlaps will not be repeated.
Below in conjunction with attached drawing, the embodiment of the present application is described in detail.
A kind of possible application system that the method that Fig. 1 shows file redirection provided by the embodiments of the present application is applicable in Framework.As shown in Figure 1, the application system 100 includes mobile terminal 101 and server 102.Wherein, mobile terminal 101 can be with It is mobile phone (mobile phone), tablet computer, laptop, palm PC, mobile internet device (mobile Internet device, MID), wearable device (such as smartwatch, Intelligent bracelet, pedometer etc.), mobile unit (example Such as, automobile, bicycle, electric vehicle, aircraft, ship, train, high-speed rail etc.), virtual reality (virtual reality, VR) sets Wireless end in standby, augmented reality (augmented reality, AR) equipment, Industry Control (industrial control) It is end, smart home device (for example, refrigerator, TV, air-conditioning, ammeter etc.), intelligent robot, workshop appliance, unmanned (selfdriving) wireless terminal in wireless terminal, remote operation (remote medical surgery), intelligence electricity in Wireless terminal in net (smart grid), the wireless terminal in transportation safety (transportation safety), wisdom city Wireless terminal in city (smart city) or the wireless terminal in wisdom family (smart home), flight equipment (for example, Intelligent robot, fire balloon, unmanned plane, aircraft) etc..Mobile terminal 101 can refer to thin-client (thin client, TC/ SC), so-called thin-client refers to the terminal of the system cut, has central processing unit (central processing Unit, CPU), the terminal of the basic service ability of guarantees such as network interface card.Mobile terminal 101 can be the terminal using Android system, It is also possible to the terminal of other operating systems, such as ubuntu operating system.Server 102 can refer to virtual machine (virtual Machine, VM), cloud computer.File or other content in mobile terminal 101 can be by being redirected in server 102 It shows, user can realize the behaviour to the file in mobile terminal 101 by the virtual file in operation server 102 Control.
The internal structure of mobile terminal 101 and virtual machine 102 in a kind of possible implementation is introduced in detail below And function.
As shown in Fig. 2, the structure of mobile terminal 101 includes fusion AM access module 201, file redirection module 202 and divides Generic module 203.As shown in figure 3, the structure of server 102 includes application program 301, file redirection module 302 and driver 303.It should be noted that it is only that one kind is shown that Fig. 2 and Fig. 3, which divides the internal structure of mobile terminal 101 and server 102, It anticipates, the module that can carry out any other traveling in practical application to the two divides, as long as being that by the embodiment of the present application I.e. belong to the application needs scope of protection to the file redirection method of offer.The module of above-mentioned signal can be hardware, can also To be the structure after the software functionally divided or hardware and software combine, module is referred to as component.
Wherein, during Folder Redirection, the concrete operations between mobile terminal 101 and server 102 pass through two Module inside person is completed.It is described in detail below.
Application program 301 is in server 102 for requesting to operate the file or file of redirection Module, for example, application program 301 has operation file ability.
File redirection module 302 provides strategy setting, number for providing Folder Redirection service for server 102 According to transmission, the communications portion for exchanging data with driver 303 is realized, request relevant data to be sent to for input and output (I/O) AM access module 201 is merged, and receives data from fusion AM access module 201, and for realizing folders and deletion etc. Control.
Driver 303 for formatting the request of application program 301, and sends the requests to file and resets To module 302, and the processing result returned is received from file redirection module 302, and processing result is returned to using journey Sequence 301.
Merge AM access module 201, be referred to as fusion access client (fusion access client, FAC) or Cloud access client, the I/O for receiving the transmission of file redirection module 302 request relevant data, which are given to text Part redirection module 202, and the information for receiving the return of file redirection module 202, and the information is given to file weight Orientation module 302.
File redirection module 202 is specifically obtained from file redirection module 302 for obtaining I/O information from server I/O information is taken, and corresponding data are obtained according to categorization module 203, the data of acquisition are returned into server.
Categorization module 303, for by mobile terminal 101 all files or partial document classify, generate empty Quasi- file directory tree.The virtual file under virtual file directory tree and virtual file directory tree is recorded, and is saved before recording update Authentic document directory tree afterbody file directory.And for the virtual route of the virtual file received to be carried out Path integration is converted to the true path of authentic document.Wherein, categorization module 303 can also be subdivided into two submodules: classification Function can realize that the function of path integration can be realized by path integration submodule by classification submodule.
Based on foregoing description, the method for file redirection provided by the embodiments of the present application will be described in detail below. As shown in figure 4, the detailed process of the method for the file redirection provided in the embodiment of the present application is as described below.In described below, Mobile terminal generates the operation of virtual file directory tree and multiple virtual files under the virtual file directory tree, can also be by taking Device be engaged in execute, server, which still falls within the application for the method for file redirection performed by executing subject, needs model to be protected It encloses.
The multiple authentic documents of step 401, acquisition for mobile terminal and the corresponding authentic document directory tree of multiple authentic document.
Step 402, mobile terminal generate virtual file directory according to multiple authentic document and the authentic document directory tree Multiple virtual files under tree and the virtual file directory tree.
Wherein, multiple virtual file and multiple authentic document have corresponding relationship, and an authentic document corresponds to one A virtual file.
The virtual file directory tree and multiple virtual file are redirected to server by step 403, mobile terminal.
In order to assist in the method for understanding file redirection provided by the embodiments of the present application, the embodiment of the present application is related to below And to several terms do and illustrate.
1) authentic document refers to the file that mobile terminal is locally stored, and in the embodiment of the present application, authentic document can be by It is redirected to server.
2) virtual file, after the authentic document of mobile terminal is redirected to server, in the text of the corresponding display of server Part is virtual file, it is to be understood that virtual file is virtual file corresponding with authentic document, storing in the server It can be the filename of authentic document and the essential information of attribute etc, rather than the specifically data of authentic document.
3) authentic document directory tree refers to that the authentic document of mobile terminal is (referred to as true in local actual stored path Physical circuit diameter) directory tree that is formed, authentic document directory tree includes multistage file directory, and user can pass through authentic document directory tree File directory is opened step by step, to obtain authentic document.For example, mobile terminal is Android system, by inquiring media Provider database obtains the true paths of All Files, can be divided into authentic document by the classification feature of system more A different classification, the same category or identical file are the same level of authentic document directory tree.In another example mobile Terminal is ubuntu operating system, by the All Files in traversal whole system, is divided documents into according still further to file suffixes Different classifications, the same category or identical file are the same level of authentic document directory tree.Wherein, after picture category Sewing includes: BMP, JPG, JPEG, PNG, GIF, and video quasisuffix includes: MP4, RMVB, MKV, AVI, and audio quasisuffix includes: Mp3, wma, rm, wav, midi, ape, flac, document quasisuffix include: doc, docx, xls, xlsx, ppt, pptx, txt, pressure Contracting packet suffix includes: zip, tar, rar.
4) virtual file directory tree, refer to mobile terminal by the whole authentic documents being locally stored or part authentic document into Row classification, specifically classifies according to the method designed in the embodiment of the present application, rather than mobile terminal system is original to true The method that file is classified.Virtual file directory tree has N grades of virtual file directories, and N is positive integer, optionally, the application The value of N is 3 in embodiment.First order virtual file directory is root, and second level virtual file directory is according to classification institute The file directory that the classification obtained generates, the afterbody file directory of third level virtual file directory authentic document directory tree.
Based on the explanation of this some term, the method for the file redirection of above-mentioned offer is done below further detailed Explanation.
The generating process of the tree of virtual file directory once introduced below.
Mobile terminal is after obtaining multiple authentic documents and the corresponding authentic document directory tree of multiple authentic document, root According to multiple authentic document and the authentic document directory tree, generate multiple under virtual file directory tree and virtual file directory tree Virtual file.
Specifically, multiple authentic documents and multiple virtual files have corresponding relationship, an authentic document maps a void Quasi- file.Virtual file may be considered the leaf node of virtual file directory tree, and the upper level file directory of virtual file is The afterbody virtual file directory of virtual file directory tree, it is assumed that virtual file directory tree has N grades of virtual file directories, empty Quasi- file directory tree includes the first order to N grades of virtual file directories, includes virtual file under N grades of virtual file directories, empty The N grades of virtual file directories of quasi- file directory tree are the afterbody virtual file directory of virtual file directory tree.
Mobile terminal generates in virtual file directory tree according to the afterbody file directory in authentic document directory tree N grades of virtual file directories.It include authentic document under afterbody file directory in authentic document directory tree.Practical application In, the authentic document directory tree saved in mobile terminal may update, for example mobile terminal restarting will lead to very Real file directory tree updates, and updated authentic document directory tree may be sent out with the authentic document directory tree before update Raw to change, optionally, above-mentioned mobile terminal generates virtual file according to the afterbody file directory in authentic document directory tree N grades of virtual file directories in directory tree are according to the afterbody file in the authentic document directory tree saved before updating Catalogue generates.
Mobile terminal can be, but not limited to generate N grades of virtual file mesh by the possible implementation of following two Record.
In a kind of possible implementation, mobile terminal takes the afterbody file directory in authentic document directory tree Combined mode, specifically, the afterbody file directory in authentic document directory tree is directly determined as N grades by mobile terminal Virtual file directory, that is, regardless of the afterbody file directory in authentic document directory tree is with the presence or absence of the identical text of name Afterbody file directory in the directory tree of authentic document is determined directly as N grades of virtual file directories by part catalogue.It is this Mode can reduce the quantity of N grades of virtual file directories.
In alternatively possible implementation, mobile terminal adopts the afterbody file directory in authentic document directory tree The mode of nonjoinder is taken, specifically, may have the afterbody file directory of multiple identical names in authentic document directory tree, And the file path where the afterbody file directory of multiple identical name is different, that is to say, that multiple phase Name with the upper level file directory of the afterbody file directory of name is different.In this case, mobile terminal The file directory that the file directory renamed as differences of multiple identical names is named, the file directory which names belong to the File directory after renaming operation is determined as N grades of virtual file directories by N grades of virtual file directories, mobile terminal.In this way, The file directory name of N grades of virtual file directories is not born the same name, and user can create new void under N grades of file directorys Quasi- file.
For example, the two picture files stored on mobile terminal, the fullpath of the first picture file is/ Sdcard/A/B/Camera/1.jpg, the fullpath of the second picture are /sdcard/Camera/2.jpg.1.jpg and 2.jpg is authentic document, and the afterbody file directory of the authentic document is Camera, but the true path of two files Shi Butong's, the upper file catalogue of the file directory Camera of the first picture file is followed successively by B, A, sdcard, and second The upper file catalogue of the file directory Camera of picture file is sdcard.As shown in figure 5, respectively illustrate using it is above-mentioned can Nonjoinder and combined mode virtual file directory tree generated in the implementation of energy.The top that dashed middle line separates For the mode virtual file directory tree generated for taking the afterbody file directory in authentic document directory tree merging.In Between the lower section that separates of dotted line to take the mode of nonjoinder to be generated the afterbody file directory in authentic document directory tree Virtual file directory tree, wherein the file directory Camera of identical name is renamed, obtain virtual file directory life Name is respectively Camera and Camera_1.
Mobile terminal can be, but not limited to generate (N-1) grade virtual file directory in the following manner.
Mobile terminal classifies to multiple authentic documents of acquisition, according to resulting classification of classifying, generates virtual file (N-1) grade virtual file directory in directory tree.Specifically, (N-1) grade can be named virtual according to the title of classification The title of file directory, the quantity of classification are the quantity of (N-1) grade virtual file directory.Optionally, classification include at least with It is any one of lower: picture category, audio class, video class, document class, compressed package class and installation kit class.Mobile terminal is according to these Classification classifies to authentic document, for example, classifying according to the classification suffix of the above-mentioned the 3) point description.
The first order virtual file directory that mobile terminal generates is root, and the name of root can be named arbitrarily, example Such as naming root is sort file (classified file).
Mobile terminal generates virtual file directory tree according to above method, and mobile terminal is by the information of virtual file directory tree It is saved, and according to the information feedback processing of preservation as a result, can be executed by categorization module, in other words by path integration module To execute.It is specific to save i-stage virtual file directory information, information, the void of virtual file under N grades of virtual file directories The corresponding relationship of virtual route and true path where quasi- file, wherein virtual route and true road where virtual file The corresponding relationship of diameter include: update before virtual file where virtual route and true path corresponding relationship, and update after Virtual file where virtual route and true path corresponding relationship.I-stage virtual file directory information includes: i-stage Higher level's virtual file directory under the file information, i.e. i-stage virtual file directory.
When user is by mobile terminal access server, mobile terminal is by the virtual file directory tree of generation and virtual file Multiple virtual files under directory tree are redirected to server, i.e., reflect virtual file directory tree and multiple virtual file The foundation for penetrating relationship, after redirection, user can see virtual file directory in server.It is understood that redirecting What it is to server is virtual file directory tree and multiple virtual files, not true file data, therefore is occupied in server Memory space can very little, very big burden will not be brought to server.
Optionally, in the embodiment of the present application, mobile terminal can choose whether to enable file redirection function, literary when enabling When part redirection function, after being connected to server, it can be realized the redirection of virtual file directory tree and virtual file, work as pass When closed file redirection function, server receipts are connected to, resetting for virtual file directory tree and virtual file will not be carried out To.
After redirection, between server and mobile terminal can by I/O data realize file access and it is related locate Reason.It is described in detail below.It should be noted that following treatment process can be used as independent scheme, can also be reset with above-mentioned To method combine and form the application and need scheme to be protected, belong to the protection scope of the application.
Server sends file operation message to mobile terminal, and mobile terminal receives the file operation that server is sent and disappears Breath executes corresponding operation.
Specifically, if file operation message is used for the i-stage virtual file directory for requesting to open virtual file directory tree, Mobile terminal returns to (i+1) grade virtual file directory of virtual file directory tree to server, wherein i=1~N, alternatively, i =0~(N-1).If file operation message opens N grades of virtual file directories for requesting, mobile terminal is grasped according to this document Make message to the virtual file under server N grades of virtual file directories of return.If file operation message is empty for requesting to open Quasi- file, then mobile terminal returns to the corresponding authentic document of virtual file, server to server according to this document operation information The data for receiving authentic document, check authentic document on the server.I, N is positive integer.
In addition, mobile terminal actually will be to virtual if file operation message carries out virtual file processing for requesting The corresponding authentic document of file is handled or mobile terminal needs to be implemented virtual file and handles corresponding authentic document processing Process.Specifically, mobile terminal according to file operation message, determines that virtual file handles targeted destination virtual file place Virtual route, the virtual file directory tree where which is used to indicate destination virtual file is formed by path, moves Dynamic terminal carries out path integration to the virtual route where destination virtual file, it is empty to obtain target according to the mapping relations of storage The corresponding true path of virtual route where quasi- file, the true path are the corresponding target authentic document of destination virtual file The authentic document directory tree at place is formed by path, wherein the mapping relations characterize multiple virtual routes and multiple true roads Relationship between diameter.Mobile terminal is based on true path obtained and carries out authentic document processing to target authentic document.Really File process is corresponding with virtual file processing, is in particular in, virtual file processing is newly-built in N grades of virtual file directories Virtual file, then it is the afterbody file mesh in authentic document directory tree that virtual file, which handles corresponding authentic document processing, Authentic document is created in record;Alternatively, virtual file processing is deletes virtual file, then virtual file handles corresponding authentic document Processing is to delete the authentic document in true path;Alternatively, virtual file processing is modification, then virtual file processing pair The authentic document processing answered is to modify to the authentic document in true path.Alternatively, virtual file processing is virtual for duplication File, then virtual file handles corresponding authentic document processing to replicate to the authentic document in true path.Certainly, on The processing only citing of deletion, modification, duplication is stated, virtual file processing in practice can also be other types of processing.
Visit below in conjunction with the function of modules in Fig. 2 and mobile terminal shown in Fig. 3 and server, to virtual file Ask that process is further described in detail.As described above, the division of the functional module of Fig. 2 and Fig. 3 is a kind of example, can will move Dynamic terminal and server is done other types of module and is divided, and is described below, the operation that the functional module in mobile terminal executes It can be equivalent to operation performed by mobile terminal, the operation that the functional module of server executes can be equivalent to server execution Operation.
As shown in fig. 6, the browsing process of virtual file is specific as follows.
When step 601, application program 301 access virtual file, the system (such as Windows system) of server will be generated IRP request is reached driver 303 by input output request (I/O request package, IRP), application program.
Step 602, driver 303 receive IRP request, IRP are requested format transformation, such as be converted into RX_CONTEXT Request packet, the request packet reach in the message processing function of driver 303, encapsulate corresponding file operation inside processing function Message passes to file redirection module 302 by shared drive.Wherein, RX_CONTEXT structural body is describing one The IRP handled by a mini network redirection device, and include the status information for allowing to discharge global resource when IRP is completed.
File operation message is passed to fusion AM access module via network channel by step 603, file redirection module 302 201。
Step 604, fusion AM access module 201 are by file operation message distribution to file redirection module 202.
Step 605, file redirection module 202 are according to file operation message, record and correlation based on categorization module 203 Function carries out path integration, and executes corresponding operation.The specific for example above-mentioned mobile terminal of implementation procedure receives what server was sent Corresponding operation is executed after file operation message.
Step 606, file redirection module 202 obtain corresponding data after executing corresponding operation to authentic document And processing result.
The data of acquisition and processing result are returned to fusion AM access module 201 by step 607, file redirection module 202.
Data and processing result are redirected to file redirection module 302 by step 608, fusion AM access module 201.
Data and processing result by shared drive, are returned to driver by step 609, file redirection module 302 303。
Data and processing result are filled into the correspondence of RX_CONTEXT to being finally filled by step 610, driver 303 The IRP packet of application program, and return to application program 301.
In conjunction with foregoing description, below by taking N=3 as an example, i.e., it is with three-level virtual file directory with virtual file directory tree Example, does further detailed description to the method for file redirection provided by the present application.
Assuming that the true path of multiple authentic documents and authentic document that mobile terminal is locally stored is as follows :/sdcard/ A/Camera/1.jpg、/sdcard/A/Camera/2.png、/sdcard/A/Camera/3.bmp、/sdcard/B/ Camera/1.jpg、/sdcard/B/Camera/2.png、/sdcard/B/Camera/3.bmp、/sdcard/C/Music/ 1.mp3、/sdcard/C/Music/2.WAV、/sdcard/C/Music/3.WV、/sdcard/A/Camera/1.mp4、/ sdcard/A/Camera/2.3gp、/sdcard/A/Camera/3.AVI、/sdcard/B/Wechat/1.mp4、/sdcard/ B/Wechat/2.3gp,/sdcard/B/Wechat/3.AVI.The authentic document catalogue of so multiple authentic document includes :/ sdcard/A/Camera、/sdcard/B/Camera、/sdcard/C/Music、/sdcard/A/Camera、/sdcard/B/ Wechat.As shown in fig. 7, illustrate the structure of authentic document directory tree, root directory sdcard, next level it is true Real file catalogue includes A, B, C, and the authentic document catalogue of the last one level includes Camera, Camera, Music, Camera And Wechat, the authentic document under the authentic document catalogue of the last one level include: 1.jpg, 2.png, 3.bmp, 1.jpg, 2.png、3.bmp、1.mp3、2.WAV、3.WV、1.mp4、2.3gp、3.AVI、1.mp4、2.3gp、3.AVI。
Mobile terminal be based on above-mentioned multiple authentic documents and authentic document directory tree, generate virtual file directory tree and virtually Multiple virtual files under file directory tree.Wherein multiple virtual file and multiple authentic documents correspond, so this is more A virtual file include 1.jpg, 2.png, 3.bmp, 1.jpg, 2.png, 3.bmp, 1.mp3,2.WAV, 3.WV, 1.mp4, 2.3gp,3.AVI,1.mp4,2.3gp,3.AVI.It should be understood that virtual file is not to replicate authentic document, only It is the information for including filename and/or attribute etc, user can be shown to carry out virtual file processing.Mobile terminal according to The afterbody file directory of authentic document directory tree generates the third level file directory of virtual file directory tree.Authentic document mesh The afterbody file directory of record tree includes Camera, Camera, Music, Camera and Wechat, wherein the first two Camera Belong to the same upper file directory A.In this case, mobile terminal, which can choose, merges two Camera, or By two Camera without merging two ways.Concrete mode can refer to method shown in fig. 5.According to the side of nonjoinder One of Camera is then carried out renamed as Camera_1, so that the naming method of two Camera is not born the same name by formula.It is mobile Terminal classifies multiple authentic documents, generates second level file directory according to classification, for example, above-mentioned multiple authentic documents Classification includes picture (Picture) class, video (Video) class, audio (Music) class, then second level file directory includes picture (Picture), video (Video) and audio (Music).First class paper catalogue is root, can be named as sort file (Classified File).The virtual file directory tree generated in the manner described above is as shown in Figure 8, wherein third level file mesh What record generated in the way of nonjoinder.
Mobile terminal saves the information of virtual file directory tree, specifically includes: first order virtual file directory information, second Grade virtual file directory information, third level virtual file directory information.Wherein, first order virtual file directory information includes first Grade virtual file, second level virtual file directory information includes the second level virtual file under first order virtual file directory, the Three-level virtual file directory information includes first order virtual file directory, the second virtual file directory and third level virtual file Relationship, the third level virtual file under the virtual file directory of the second level.Based on the example above, first order virtual file directory letter Breath, second level virtual file directory information and third level virtual file directory information are specifically as shown in Figure 9.
Based on the example above, Figure 10 shows the pass corresponding with authentic document of the virtual file under virtual file directory tree System.Figure 11 shows the corresponding relationship of virtual file directory Yu authentic document catalogue, and authentic document catalogue also embodies true text The true path of part, the first order of virtual file directory form the virtual route of virtual file to third level file directory, figure 11 are also shown the corresponding relationship of virtual route and true path.
When mobile terminal is by network connection to server, first order virtual file directory maps to server.Work as clothes When business device receives the instruction for opening first order virtual file directory, enumeration message is sent to mobile terminal by server, mobile Second level virtual file directory is sent to server by terminal, and server shows second level virtual file directory.Similar, when When server receives the instruction for opening second level virtual file directory, enumeration message is sent to mobile terminal by server, is moved Third level virtual file directory is sent to server by dynamic terminal, and server shows third level virtual file directory.Work as service When device receives the instruction for opening third level virtual file directory, enumeration message is sent to mobile terminal by server, mobile whole Virtual file under third level virtual file directory is sent to server by end, and server shows third level virtual file directory Under virtual file.When server receives the operation to virtual file, operation information is sent to mobile terminal by server, Virtual file is carried out path integration by mobile terminal, is converted to the corresponding true path of the corresponding authentic document of virtual file, Authentic document is operated under true path.Wherein, mobile terminal is obtained according to the open instructions of upper level virtual file directory When removing primary virtual file directory, the letter such as title and file attribute of the next stage virtual file directory of acquisition can be Breath, file attribute includes spatial information, modification time etc..
Wherein, in conjunction with Fig. 2 and structural schematic diagram shown in Fig. 3, in the above process, file redirection module 302 will be enumerated Message is sent to fusion AM access module 201, and file redirection module 202 is obtained next by interacting with categorization module 203 Grade virtual file directory, returns to file redirection module 302 for next stage virtual file directory.
Based on the example above, in conjunction with foregoing description, when mobile terminal is by network connection to server, the first order is virtual Root Classified File is presented in file directory Classified File mapping value server on the server.Work as clothes When business device receives the instruction for opening first order virtual file directory Classified File, server sends enumeration message To mobile terminal, mobile terminal is by the title and file attribute of the second level virtual file directory Picture, Media and Video Information is sent to server, and the second level virtual file directory such as Figure 12 is presented in server.When server receives opening second When the instruction of virtual file directory Picture, enumeration message is sent to mobile terminal by server, and mobile terminal is by Picture Under the third level virtual file directory Camera and Camera_1 be sent to server, third as shown in fig. 13 that is presented in server Grade virtual file directory.When server receives the instruction for opening third level virtual file directory Camera, server general piece Lift message and be sent to mobile terminal, mobile terminal by the title of virtual file 1.jpg, 2.png and 3.bmp under Camera and The information of file attribute is sent to server, and virtual file as shown in figure 14 is presented in server.When server is received to void When the instruction that quasi- file is handled, the corresponding operation information of the instruction is sent to mobile terminal, mobile terminal receives behaviour After making message, path integration is carried out to virtual file, the corresponding true path of virtual route of virtual file is converted to, true The corresponding authentic document of virtual file is handled on path, for example, the processing can be opening, read-write, deletion, modification, The operations such as renaming, duplication.For example, server is received to virtual file/Classified File/Piture/Camera/ Operation information is sent to mobile terminal by the operational order that 1.jpg is deleted, server, and mobile terminal receives operation and disappears Breath, carry out path integration, by virtual route/Classified File/Piture/Camera/1.jpg be converted to true path/ Sdcard/A/Camera/1.jpg, and the authentic document 1.jpg under the true path is deleted.
In conclusion the embodiment of the present application is by being redirected to server for virtual file directory tree, server can be incited somebody to action Virtual file directory is presented to the user by level, and the classification for realizing virtual file is presented, and improves the service quality of redirection, The file operation for helping to be promoted user is experienced.
Based on the same inventive concept with above method embodiment, as shown in figure 15, the embodiment of the present application also provides one The device 1500 of kind file redirection, the device 1500 that this document redirects is for executing mobile terminal in above method embodiment Performed operation.The device 1500 that this document redirects includes acquiring unit 1501, generation unit 1502, redirects unit 1503, receiving unit 1504 and transmission unit 1505.Wherein:
Receiving unit 1504 and transmission unit 1505 are optional unit, this feelings in the device 1500 that this document redirects Under condition:
Acquiring unit 1501, for obtaining multiple authentic documents and the corresponding authentic document catalogue of multiple authentic document Tree.
Generation unit 1502, for generating virtual file directory according to multiple authentic document and the authentic document directory tree Multiple virtual files under tree and the virtual file directory tree, multiple virtual file have corresponding close with multiple authentic document System.
Unit 1503 is redirected, for the virtual file directory tree and multiple virtual file to be redirected to server.
Optionally, generation unit 1502 is specifically used for, and classifies to multiple authentic document, according to resulting class of classifying Not, (N-1) grade virtual file directory in the virtual file directory tree is generated, wherein the virtual file directory tree has N grades Virtual file directory, N are positive integer.
Optionally, generation unit 1502 is specifically used for, according to the afterbody file directory in the authentic document directory tree, Generate N grades of virtual file directories in the virtual file directory tree, wherein the virtual file directory tree has N grades of virtual texts Part catalogue, N are positive integer.
Optionally, generation unit 1502 is specifically used for, and the afterbody file directory in the authentic document directory tree is true It is set to the N grades of virtual file directories;Alternatively, the mobile terminal has multiple identical names in the authentic document directory tree Afterbody file directory, and the file directory of multiple identical name belongs to the different files in the authentic document directory tree When path, the file directory that the file directory renamed as difference of multiple identical name is named, the file of difference name Catalogue belongs to the N grades of virtual file directories.
Optionally, which is used for, and receives file operation message from the server.If this document operation information For requesting the i-stage virtual file directory of the opening virtual file directory tree, then transmission unit 1505 is used for according to this document Operation information returns to (i+1) grade virtual file directory of the virtual file directory tree to the server;Alternatively, if this document is grasped Make message for requesting the N grades of virtual file directories of the opening virtual file directory tree, then transmission unit 1505 is used for basis This document operation information returns to the virtual file under the N grades of virtual file directories to the server;Alternatively, if this document is grasped Make message for request open the virtual file, then transmission unit 1505 be used for the mobile terminal according to this document operation information to The server returns to the corresponding authentic document of the virtual file.Wherein, which has N grades of virtual file mesh Record, i, N are positive integer.
Receiving unit 1504 be also used to from the server receive file operation message, this document operation information for request into The processing of row virtual file redirects unit 1503 and is also used to determine that virtual file processing is targeted according to this document operation information Destination virtual file where virtual route, which is used to indicate the virtual file mesh where the destination virtual file Record tree is formed by path;And redirect unit 1503 and be also used to the mapping relations according to storage, to the destination virtual file The virtual route at place carries out path integration, obtains the corresponding true path of virtual route where the destination virtual file, should True path is that the authentic document directory tree where the corresponding target authentic document of the destination virtual file is formed by path, should Mapping relations characterize the relationship between multiple virtual routes and multiple true paths;And it redirects unit 1503 and is also used to base In true path obtained to target authentic document carry out authentic document processing, the authentic document processing with the virtual file at Reason corresponds to.
Optionally, which has N grades of virtual file directories, and N is positive integer, and virtual file processing is Virtual file is created in the N grades of virtual file directories, then the virtual file handle the processing of the corresponding authentic document for Authentic document is created in afterbody file directory in the authentic document directory tree;Virtual file processing is virtual literary to delete Part, then the virtual file handles corresponding authentic document processing to delete the authentic document in the true path;It should Virtual file processing is modification virtual file, then the virtual file handles corresponding authentic document processing as to the true path In authentic document modify;Virtual file processing is duplication virtual file, then corresponding this is true for virtual file processing Real file processing is to replicate to the authentic document in the true path.
Optionally, the category includes at least any one of following: picture category, audio class, video class, document class, compression Packet class and installation kit class.
This document redirect device 1500 in acquiring unit 1501, generation unit 1502, redirect unit 1503 be can The unit of choosing, in this case:
The receiving unit 1504 is used for, and receives file operation message from the server.If this document operation information is for asking The i-stage virtual file directory for opening the virtual file directory tree is sought, then transmission unit 1505 is used to disappear according to this document operation Cease (i+1) grade virtual file directory that the virtual file directory tree is returned to the server;Alternatively, if this document operation information For requesting the N grades of virtual file directories of the opening virtual file directory tree, then transmission unit 1505 is used for according to this document Operation information returns to the virtual file under the N grades of virtual file directories to the server;Alternatively, if this document operation information For requesting to open the virtual file, then transmission unit 1505 for the mobile terminal according to this document operation information to the service Device returns to the corresponding authentic document of the virtual file.Wherein, which has N grades of virtual file directories, and i, N are Positive integer.
Acquiring unit 1501, generation unit 1502 redirect operation performed by unit 1503 as described in above-mentioned part, connect Described in part, it is no longer superfluous herein to repeat place also described above for other operations performed by receipts unit 1504 and transmission unit 1505 It states.
Based on the same inventive concept of above-mentioned communication means, as shown in figure 16, the embodiment of the present application also provides a kind of texts The device 1600 that part redirects, the device 1600 that this document redirects is for realizing file redirection provided by the above embodiment The operation of mobile terminal execution in method, the device 1600 that this document redirects include: transceiver 1601, processor 1602, deposit Reservoir 1603.Transceiver 1601 is optional.Processor 1602 is for calling batch processing, when program is performed, so that place Reason device 1602 executes the operation of mobile terminal execution in the method for file redirection provided by the above embodiment.Memory 1603 is used In the program that storage processor 1602 executes.Functional module receiving unit 1504, transmission unit 1505 in Figure 15 can pass through Transceiver 1601 realizes, acquiring unit 1501, generation unit 1502, redirect unit 1503 can by processor 1602 come It realizes.
Processor 1602 can be central processing unit (central processing unit, CPU), network processing unit The combination of (network processor, NP) or CPU and NP.
Processor 1602 can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit (application-specific integrated circuit, ASIC), programmable logic device (programmable Logic device, PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices (complex Programmable logic device, CPLD), field programmable gate array (field-programmable gate Array, FPGA), Universal Array Logic (generic array logic, GAL) or any combination thereof.
Memory 1603 may include volatile memory (volatile memory), such as random access memory (random-access memory, RAM);Memory 1603 also may include nonvolatile memory (non-volatile ), such as flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disk memory (solid-state drive, SSD);Memory 1603 can also include the combination of the memory of mentioned kind.
In the method for the file redirection that the above embodiments of the present application provide, behaviour performed by described mobile terminal Make to be completed with chip or integrated circuit with some or all of in function.
In order to realize that the function of device described in above-mentioned Figure 15 and Figure 16, the embodiment of the present application also provide a kind of chip, wrap Processor is included, for supporting the device to realize in the method for file redirection provided by the above embodiment involved in mobile terminal Function.In a kind of possible design, which connect with memory or the chip includes memory, and the memory is for protecting Deposit the necessary program instruction of the device and data.
The embodiment of the present application provides a kind of computer storage medium, is stored with computer program, the computer program packet Include the instruction of the method for executing file redirection provided by the above embodiment.
The embodiment of the present application provides a kind of computer program product comprising instruction, when run on a computer, So that the method that computer executes file redirection provided by the above embodiment.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this Shen to the embodiment of the present application Please embodiment spirit and scope.In this way, if these modifications and variations of the embodiment of the present application belong to the claim of this application And its within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.

Claims (26)

1. a kind of method of file redirection characterized by comprising
The multiple authentic documents of acquisition for mobile terminal and the corresponding authentic document directory tree of the multiple authentic document;
The mobile terminal according to the multiple authentic document and the authentic document directory tree generate virtual file directory tree with Multiple virtual files under the virtual file directory tree, the multiple virtual file have corresponding with the multiple authentic document Relationship;
The virtual file directory tree and the multiple virtual file are redirected to server by the mobile terminal.
2. the method as described in claim 1, which is characterized in that the mobile terminal is according to the multiple authentic document and described Authentic document directory tree generates multiple virtual files under virtual file directory tree and the virtual file directory tree, comprising:
The mobile terminal classifies to the multiple authentic document;
For the mobile terminal according to resulting classification of classifying, (N-1) grade generated in the virtual file directory tree is virtually literary Part catalogue, wherein the virtual file directory tree has N grades of virtual file directories, and N is positive integer.
3. method according to claim 1 or 2, which is characterized in that the mobile terminal according to the multiple authentic document and The authentic document directory tree generates multiple virtual files under virtual file directory tree and the virtual file directory tree, packet It includes:
The mobile terminal generates the virtual file mesh according to the afterbody file directory in the authentic document directory tree N grades of virtual file directories in record tree, the virtual file directory tree have N grades of virtual file directories, and N is positive integer.
4. method as claimed in claim 3, which is characterized in that the mobile terminal generates in the virtual file directory tree N grades of virtual file directories, comprising:
Afterbody file directory in the authentic document directory tree is determined as described N grades virtual texts by the mobile terminal Part catalogue;Alternatively,
The mobile terminal has the afterbody file directory of multiple identical names in the authentic document directory tree, and It, will be the multiple when the file directory of the multiple identical name belongs to the different file paths in the authentic document directory tree The file directory of the file directory renamed as difference name of identical name, the file directorys of the different names belong to described the N grades of virtual file directories.
5. such as the described in any item methods of Claims 1 to 4, which is characterized in that the method also includes:
The mobile terminal receives file operation message from the server;
The file operation message is used to request to open the i-stage virtual file directory of the virtual file directory tree, the shifting (i+1) grade that dynamic terminal returns to the virtual file directory tree to the server according to the file operation message is virtually literary Part catalogue;Alternatively, the file operation message is used to request to open the N grades of virtual file mesh of the virtual file directory tree Record, the mobile terminal return under the N grades of virtual file directories according to the file operation message to the server The virtual file;Alternatively, the file operation message opens the virtual file for requesting, the mobile terminal is according to institute It states file operation message and returns to the corresponding authentic document of the virtual file to the server;
The virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.
6. such as the described in any item methods of Claims 1 to 4, which is characterized in that the method also includes:
The mobile terminal receives file operation message from the server, and the file operation message is virtual for requesting to carry out File process;
The mobile terminal determines that the virtual file handles targeted destination virtual file according to the file operation message The virtual route at place, the virtual file directory tree where the virtual route is used to indicate the destination virtual file are formed Path;
The mobile terminal carries out path to the virtual route where the destination virtual file and turns according to the mapping relations of storage It changes, obtains the corresponding true path of virtual route where the destination virtual file, the true path is that the target is empty Authentic document directory tree where the quasi- corresponding target authentic document of file is formed by path, and the mapping relations characterization is multiple Relationship between virtual route and multiple true paths;
The mobile terminal is based on true path obtained and carries out authentic document processing, the true text to target authentic document Part processing is corresponding with virtual file processing.
7. method as claimed in claim 6, which is characterized in that the virtual file directory tree has N grades of virtual file directories, N is positive integer, and the virtual file processing is to create virtual file in the N grades of virtual file directories, then described virtual The corresponding authentic document processing of file process is new in the afterbody file directory in the authentic document directory tree Build authentic document;
To delete virtual file, then the corresponding authentic document processing of the virtual file processing is for the virtual file processing Authentic document in the true path is deleted;
The virtual file processing is modification virtual file, then the corresponding authentic document processing of the virtual file processing is It modifies to the authentic document in the true path;
The virtual file processing is duplication virtual file, then the corresponding authentic document processing of the virtual file processing is Authentic document in the true path is replicated.
8. method according to claim 2, which is characterized in that the classification includes at least any one of following: picture category, Audio class, video class, document class, compressed package class and installation kit class.
9. a kind of method of file redirection characterized by comprising
Mobile terminal receives file operation message from server;
The file operation message is used for the i-stage virtual file directory for requesting to open virtual file directory tree, described mobile whole End returns to (i+1) grade virtual file mesh of the virtual file directory tree according to the file operation message to the server Record;Alternatively, the file operation message is used to request to open the N grades of virtual file directories of the virtual file directory tree, institute It states mobile terminal and returns to virtual text under the N grades of virtual file directories to the server according to the file operation message Part;Alternatively, the file operation message opens the virtual file for requesting, the mobile terminal is according to the file operation Message returns to the corresponding authentic document of the virtual file to the server;
The virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.
10. method as claimed in claim 9, which is characterized in that the method also includes:
The mobile terminal receives file operation message from the server, and the file operation message is virtual for requesting to carry out File process;
The mobile terminal determines that the virtual file handles targeted destination virtual file according to the file operation message The virtual route at place, the virtual file directory tree where the virtual route is used to indicate the destination virtual file are formed Path;
The mobile terminal carries out path to the virtual route where the destination virtual file and turns according to the mapping relations of storage It changes, obtains the corresponding true path of virtual route where the destination virtual file, the true path is that the target is empty Authentic document directory tree where the quasi- corresponding target authentic document of file is formed by path, and the mapping relations characterization is multiple Relationship between virtual route and multiple true paths;
The mobile terminal is based on true path obtained and carries out authentic document processing, the true text to target authentic document Part processing is corresponding with virtual file processing.
11. method as claimed in claim 10, which is characterized in that the virtual file directory tree has N grades of virtual file mesh Record, N is positive integer, and the virtual file processing is virtual file newly-built in the N grades of virtual file directories, then the void Intend the corresponding authentic document processing of file process as in the afterbody file directory in the authentic document directory tree Newly-built authentic document;
The virtual file processing is deletes, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is deleted;
The virtual file processing is modification, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is modified;
The virtual file processing is duplication, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is replicated.
12. a kind of device of file redirection characterized by comprising
Acquiring unit, for obtaining multiple authentic documents and the corresponding authentic document directory tree of the multiple authentic document;
Generation unit, the multiple authentic document and the authentic document directory tree for being obtained according to the acquiring unit are raw At multiple virtual files under virtual file directory tree and the virtual file directory tree, the multiple virtual file and described more A authentic document has corresponding relationship;
Redirect unit, the virtual file directory tree and the multiple virtual file weight for generating the generation unit It is directed to server.
13. device as claimed in claim 12, which is characterized in that the generation unit is used for:
Classify to the multiple authentic document;
According to resulting classification of classifying, (N-1) grade virtual file directory in the virtual file directory tree is generated, wherein The virtual file directory tree has N grades of virtual file directories, and N is positive integer.
14. device as described in claim 12 or 13, which is characterized in that the generation unit is used for:
According to the afterbody file directory in the authentic document directory tree, the N in the virtual file directory tree is generated Grade virtual file directory, the virtual file directory tree have N grades of virtual file directories, and N is positive integer.
15. device as claimed in claim 14, which is characterized in that the generation unit is used for:
Afterbody file directory in the authentic document directory tree is determined as the N grades of virtual file directories;Alternatively,
There is the afterbody file directory of multiple identical names in the authentic document directory tree, and the multiple identical When the file directory of name belongs to the different file paths in the authentic document directory tree, by the text of the multiple identical name The file directory of the file directory of part catalogue renamed as difference name, the different names belongs to the N grades of virtual files Catalogue.
16. such as the described in any item devices of claim 12~15, which is characterized in that described device further include:
Receiving unit, for receiving file operation message from the server;
Transmission unit, if for the file operation message for requesting the i-stage for opening the virtual file directory tree virtual File directory then returns to (i+1) grade of the virtual file directory tree according to the file operation message to the server Virtual file directory;Alternatively, if the file operation message is used to request to open N grades of the virtual file directory tree virtually File directory, then returned under the N grades of virtual file directories according to the file operation message to the server described in Virtual file;Alternatively, being disappeared if the file operation message opens the virtual file for requesting according to the file operation It ceases to the server and returns to the corresponding authentic document of the virtual file;
The virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.
17. such as the described in any item devices of claim 12~15, which is characterized in that the receiving unit is also used to: from described Server receives file operation message, and the file operation message carries out virtual file processing for requesting;
The redirection unit is also used to, and according to the file operation message, determines that the virtual file handles targeted mesh The virtual route where virtual file is marked, the virtual route is used to indicate the virtual file mesh where the destination virtual file Record tree is formed by path;And for the mapping relations according to storage, to the virtual route where the destination virtual file Path integration is carried out, obtains the corresponding true path of virtual route where the destination virtual file, the true path is Authentic document directory tree where the corresponding target authentic document of the destination virtual file is formed by path, and the mapping is closed System characterizes the relationship between multiple virtual routes and multiple true paths;And for being based on true path obtained to target Authentic document carries out authentic document processing, and the authentic document processing is corresponding with virtual file processing.
18. device as claimed in claim 17, which is characterized in that the virtual file directory tree has N grades of virtual file mesh Record, N is positive integer, and the virtual file processing is virtual file newly-built in the N grades of virtual file directories, then the void Intend the corresponding authentic document processing of file process as in the afterbody file directory in the authentic document directory tree Newly-built authentic document;
To delete virtual file, then the corresponding authentic document processing of the virtual file processing is for the virtual file processing Authentic document in the true path is deleted;
The virtual file processing is modification virtual file, then the corresponding authentic document processing of the virtual file processing is It modifies to the authentic document in the true path;
The virtual file processing is duplication virtual file, then the corresponding authentic document processing of the virtual file processing is Authentic document in the true path is replicated.
19. device as claimed in claim 13, which is characterized in that the classification includes at least any one of following: picture Class, audio class, video class, document class, compressed package class and installation kit class.
20. a kind of device of file redirection characterized by comprising
Receiving unit, for receiving file operation message from server;
Transmission unit, if the i-stage virtual file for being used to request to open virtual file directory tree for the file operation message Catalogue, then it is virtual according to (i+1) grade that the file operation message returns to the virtual file directory tree to the server File directory;Alternatively, if the file operation message is used to request to open the N grades of virtual files of the virtual file directory tree Catalogue then returns to the virtual file under the N grades of virtual file directories according to the file operation message to the server; Alternatively, if the file operation message opens the virtual file for requesting, according to the file operation message to described Server returns to the corresponding authentic document of the virtual file;
The virtual file directory tree has N grades of virtual file directories, and i, N are positive integer.
21. device as claimed in claim 20, which is characterized in that the receiving unit is also used to, and is received from the server File operation message, the file operation message carry out virtual file processing for requesting;
It further include redirecting unit, for determining that the virtual file handles targeted mesh according to the file operation message The virtual route where virtual file is marked, the virtual route is used to indicate the virtual file mesh where the destination virtual file Record tree is formed by path;And for the mapping relations according to storage, to the virtual route where the destination virtual file Path integration is carried out, obtains the corresponding true path of virtual route where the destination virtual file, the true path is Authentic document directory tree where the corresponding target authentic document of the destination virtual file is formed by path, and the mapping is closed System characterizes the relationship between multiple virtual routes and multiple true paths;And for being based on true path obtained to target Authentic document carries out authentic document processing, and the authentic document processing is corresponding with virtual file processing.
22. device as claimed in claim 21, which is characterized in that the virtual file directory tree has N grades of virtual file mesh Record, N is positive integer, and the virtual file processing is virtual file newly-built in the N grades of virtual file directories, then the void Intend the corresponding authentic document processing of file process as in the afterbody file directory in the authentic document directory tree Newly-built authentic document;
The virtual file processing is deletes, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is deleted;
The virtual file processing is modification, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is modified;
The virtual file processing is duplication, then the corresponding authentic document processing of the virtual file processing is to described true Authentic document in physical circuit diameter is replicated.
23. a kind of device of file redirection characterized by comprising
Processor calls the program in the memory, executes described program to realize that right such as is wanted for coupling with memory Seek method described in 1-11 any one.
24. a kind of computer readable storage medium, which is characterized in that be stored in the computer storage medium computer-readable Instruction, when computer is read and executes the computer-readable instruction, so that computer is executed as claim 1-11 is any Method described in one.
25. a kind of computer program product, which is characterized in that when computer is read and executes the computer program product, So that computer executes the method as described in claim 1-11 any one.
26. a kind of chip apparatus, which is characterized in that the chip is connected with memory or the chip includes the storage Device, for reading and executing the software program stored in the memory, to realize as described in claim 1-11 any one Method.
CN201810601898.6A 2018-06-12 2018-06-12 A kind of method and device of file redirection Pending CN109033152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810601898.6A CN109033152A (en) 2018-06-12 2018-06-12 A kind of method and device of file redirection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810601898.6A CN109033152A (en) 2018-06-12 2018-06-12 A kind of method and device of file redirection

Publications (1)

Publication Number Publication Date
CN109033152A true CN109033152A (en) 2018-12-18

Family

ID=64612813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810601898.6A Pending CN109033152A (en) 2018-06-12 2018-06-12 A kind of method and device of file redirection

Country Status (1)

Country Link
CN (1) CN109033152A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113653A (en) * 2019-04-19 2019-08-09 青岛海信电器股份有限公司 A kind of display methods and terminal of setting option

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346717B1 (en) * 2008-07-17 2013-01-01 Apple Inc. Managing file systems
CN104318179A (en) * 2014-10-30 2015-01-28 成都卫士通信息产业股份有限公司 File redirection technology based virtualized security desktop
CN107967322A (en) * 2017-11-23 2018-04-27 努比亚技术有限公司 Document classification display methods, mobile terminal and computer-readable recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346717B1 (en) * 2008-07-17 2013-01-01 Apple Inc. Managing file systems
CN104318179A (en) * 2014-10-30 2015-01-28 成都卫士通信息产业股份有限公司 File redirection technology based virtualized security desktop
CN107967322A (en) * 2017-11-23 2018-04-27 努比亚技术有限公司 Document classification display methods, mobile terminal and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113653A (en) * 2019-04-19 2019-08-09 青岛海信电器股份有限公司 A kind of display methods and terminal of setting option

Similar Documents

Publication Publication Date Title
KR101974288B1 (en) Synchronization of shared folders and files
CN106104514B (en) Accelerate method, system and the medium of the object in access object repository
CN103731483B (en) Virtual file system based on cloud computing
CN105740303B (en) The method and device of improved object storage
US20060288036A1 (en) Device specific content indexing for optimized device operation
CN107526777A (en) A kind of method and apparatus handled based on version number file
JP2019517042A (en) Providing access to hybrid applications offline
CN106970958B (en) A kind of inquiry of stream file and storage method and device
CN104778192B (en) Represent can content addressed storage system bibliographic structure
JP5638608B2 (en) Method for accessing file system files according to metadata and apparatus for implementing the method
CN106095871A (en) A kind of method and device setting up data base directory structure
CN105302920A (en) Optimal management method and system for cloud storage data
US20200356528A1 (en) System and method for archive file check-in/out in an enterprise content management system
CN109471838A (en) The operating method of Catalog Documents, device, electronic equipment, readable storage medium storing program for executing
CN107817946A (en) For mixing the method and device of storage device read-write data
Changtong An improved HDFS for small file
JP4233564B2 (en) Data processing apparatus, data processing program and recording medium
US20020062320A1 (en) File management method and content recording/playback apparatus
KR20060045711A (en) Method and device for handling metadata
CN104123309B (en) Method and system for data management
CN113688139B (en) Object storage method, gateway, device and medium
CN109033152A (en) A kind of method and device of file redirection
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
US9020902B1 (en) Reducing head and tail duplication in stored data
CN103403713B (en) File variant in file system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218