[go: up one dir, main page]

HK1154140A - File transferring method based on file directory with device and system thereof - Google Patents

File transferring method based on file directory with device and system thereof Download PDF

Info

Publication number
HK1154140A
HK1154140A HK11108391.5A HK11108391A HK1154140A HK 1154140 A HK1154140 A HK 1154140A HK 11108391 A HK11108391 A HK 11108391A HK 1154140 A HK1154140 A HK 1154140A
Authority
HK
Hong Kong
Prior art keywords
file
client
folder
directory
notification message
Prior art date
Application number
HK11108391.5A
Other languages
Chinese (zh)
Inventor
鲁一鹏
刘庚
Original Assignee
阿里巴巴集团控股有限公司
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of HK1154140A publication Critical patent/HK1154140A/en

Links

Description

File transmission method based on file directory and device and system thereof
Technical Field
The present application relates to the field of communications, and in particular, to a file transmission method based on a file directory in an IM system, and an apparatus and a system thereof.
Background
IM (Instant Messaging) is a real-time communication service that allows users to establish a private chat room (chatroom) on a network, and mainly includes an IM server and a plurality of IM clients. P2P (Peer-to-Peer) is a Peer-to-Peer interconnection technology by which users can share and exchange files through a direct interconnection between computers.
In the existing IM communication system, a user can perform P2P communication through an IM client to realize transmission of network files. When transmitting files, the sender client establishes a P2P connection with the receiver client to transmit the files to be transmitted one by one, which has the defect that the file transmission based on the file directory directly cannot be realized, i.e. the files in the whole file directory cannot be automatically transmitted to the receiver client without the intervention of the user, and the receiver client automatically stores the received files as a file storage structure consistent with the file directory.
Disclosure of Invention
The embodiment of the application provides a file transmission method based on a file directory, and a device and a system thereof, which are used for solving the problem that the existing IM system transmits files based on the file directory.
The technical scheme provided by the embodiment of the application comprises the following steps:
a file transmission method based on a file directory comprises the following steps:
the method comprises the steps that a sender instant messaging IM client sends files under each folder root directory in a file directory one by one folder, wherein a notification message is sent firstly before sending the files under the root directory of each folder, the notification message carries the name of a current folder and the position information of the current folder in the file directory, and then all the files under the current folder root directory are sent one by one;
and the receiver IM client creates a folder according to the received notification message and saves the file sent after the notification message to the root directory of the created folder.
Another embodiment of the present application further discloses a file transmission system based on a file directory, including:
the IM client of the sender is used for sending files under the root directories of all the folders in the file directories one by one, wherein before sending the files under the root directories of each folder, a notification message is sent firstly, wherein the notification message carries the name of the current folder and the position information of the current folder in the file directories, and then all the files under the root directories of the current folder are sent one by one;
and the receiver IM client is used for creating a folder according to the received notification message and saving the file sent after the notification message to the root directory of the created folder.
Another embodiment of the present application further discloses a file transmission client based on a file directory, including:
the sending module is used for sending files under the root directories of the folders in the file directories to other file directory transmission clients one by one, wherein before sending the files under the root directories of each folder, a notification message is sent firstly, wherein the notification message carries the name of the current folder and the position information of the current folder in the file directories, and then all the files under the root directories of the current folder are sent one by one;
and the receiving module is used for receiving a notification message which is sent by other file directory transmission clients and carries the name of the folder and the position information of the folder in the file directory, creating the folder according to the notification message, and storing the file sent after the notification message under the root directory of the created folder.
In the embodiment of the application, in the process of transmitting files based on the file directory, before transmitting a file under a file directory root directory, the sending party IM client sends a notification message carrying the name of the file folder and the position information of the file folder in the file directory to be transmitted, so that the receiving party IM client can establish a corresponding file folder according to the notification message and store the received file under the file folder, and the receiving party IM client can store the received file into a file directory structure consistent with that of the sending party IM client, thereby realizing file transmission based on the file directory between the IM clients.
Another embodiment of the present application further discloses another file directory transmission method, including the following steps:
the method comprises the steps that a sender IM client firstly sends structural information of a whole file directory, then sends files under root directories of all the file directories one by one, wherein before sending the files under the root directories of each file folder, a notification message carrying the name of a current file folder and position information of the current file folder in the file directory is sent firstly, and then all the files under the root directories of the current file folders are sent one by one;
and the receiver IM client creates a file directory according to the received file directory information, locates a folder in the created file directory according to the received notification message, and stores the file sent after the notification message in a root directory of the located folder.
Another embodiment of the present application further discloses another file directory transmission system, including:
the IM client of the sender is used for firstly sending the structure information of the whole file directory, then sending the files under the root directories of the folders in the file directory one by one, wherein before sending the files under the root directories of each folder, firstly sending a notification message carrying the name of the current folder and the position information of the folder in the file directory, and then sending all the files under the root directory of the folder one by one;
and the receiver IM client is used for creating a file directory according to the received file directory information, positioning a folder in the created file directory according to the received notification message, and storing the file sent after the notification message in a root directory of the positioned folder.
Another embodiment of the present application further discloses a file directory transmission client, including:
the sending module is used for sending the structure information of the whole file directory to other file directory transmission clients firstly, then sending the files under the root directories of the file directories one by one, wherein before sending the files under the root directories of each file folder, a notification message carrying the name of the current file folder and the position information of the file folder in the file directory is sent firstly, and then sending all the files under the root directory of the file folder one by one;
the receiving module is used for receiving the file directory structure information sent by other file directory transmission clients and creating a file directory according to the file directory structure information; and receiving a notification message which is sent by the other file directory transmission client and carries the position information of the file folder in the file directory, positioning the file folder in the created file directory according to the notification message, and storing the file sent after the notification message under the root directory of the positioned file folder.
In the embodiment of the application, the sending party IM client notifies the receiving party IM client of the structural information of the whole file directory before transmitting the files in the file directory, so that the sending party IM client can establish the corresponding file directory; and then before transmitting the files under the root directory of each folder, the IM client of the sender notifies the IM client of the receiver of the position information of the folder in the file directory, so that the IM client of the receiver can position the corresponding folder according to the notification message and store the received files under the folder, and the IM client of the receiver can establish a directory structure consistent with the file directory transmitted by the IM client of the sender, thereby realizing the file transmission based on the file directory between the IM clients.
Drawings
FIG. 1 is a schematic diagram of a system architecture suitable for use in embodiments of the present application;
fig. 2 is a schematic flowchart of transmitting a file directory in a peer-to-peer manner according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a process of transmitting a file directory in a server transfer manner according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a file directory to be transmitted according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an IM client according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application is provided in connection with the accompanying drawings.
Fig. 1 is a schematic diagram of a system architecture applicable to the embodiment of the present application. As shown, the system architecture is an IM system architecture. Generally, an IM system architecture includes a large number of IM clients, and there may be more than one IM server, and the embodiment of the present application only takes the IM system architecture shown in fig. 1 as an example, and describes functions of each entity and a flow of file transmission therein. The IM system architecture shown in fig. 1 includes: IM server 10, and IM client 21 and IM client 22. The functions of the IM server 10 mainly include: the IM client side is authenticated and managed when logging in the IM system, user information in the IM system is managed, and when the file transmitted between the IM client sides needs to be forwarded by the IM client side, the file is forwarded. The IM client 21 and the IM client 22 may interact with instant messages and transfer files in a conventional manner.
In the embodiment of the application, the IM client is improved, and the function of transmitting files based on the file directory is added. Accordingly, IM servers (or other servers in an IM system, such as transit servers) are also being improved to support file directory forwarding functionality.
Referring to fig. 2, a schematic flow chart of transmitting a file based on a file directory in a peer-to-peer manner according to an embodiment of the present application is provided. When a user wants to transmit a file directory and all folders and files under the directory to an IM client 22 of another user through the IM client 21, the file directory to be transmitted is selected by a mouse or other methods (i.e., the folder is selected) and then dragged to a window for IM interaction with a target user. The operating system of the device where the IM client is located may capture the operation and the object of the operation (i.e. the selected folder), may also obtain information about the object (such as the location and size of the folder, the files and subfolders contained therein), and may pass the captured and obtained information to the IM client 21. The IM client 21, after obtaining the information, triggers a file directory transmission event (the operation type and the operation object may be set up in advance with the file directory transmission event, that is, the file directory transmission event is triggered once the operation occurs), and triggers a file directory transmission process according to the event. Another way to trigger the file directory transmission process is: a file directory transmission command key may be set in advance in the IM interactive window of the client 21, and when the key is clicked, a dialog box or an input box is popped up for the user to select or input the file directory, and then file directory information is obtained according to the file directory selected or input by the user, and a file directory transmission event is triggered, and a file directory transmission flow is triggered according to the event.
The file directory transmission process may be as shown in fig. 2, and includes the following steps:
step 201, IM client 21 establishes a point-to-point session connection with IM client 22, where the session connection is to be used for subsequent file directory transmission, such as establishing an FTP (file transfer protocol) session connection;
step 202, the IM client 21 sends the name of a folder in the file directory to be transmitted and the location information of the folder in the file directory to the IM client 22 in the form of a notification message;
step 203, the IM client 22 receives the notification message, and creates a folder according to the folder name carried therein and the location information of the folder in the file directory; the IM client 22 may create the file directory and the folders therein at a default location, or at a location designated by the user;
step 204, the IM client 21 sends the files in the folder root directory to the IM client 22 one by one;
step 205, the IM client 22 stores the received file in the root directory of the newly created folder;
the steps 202 to 205 are repeatedly executed until all folders in the file directory to be transmitted and the files under the root directory thereof are completely transmitted (see step 206), so that a file directory which has the same structure as the file directory transmitted by the IM client 21 and contains the same files is formed in the IM client 22. After the entire directory transfer is completed, the above-described session connection for file directory transfer can be torn down between the IM client 21 and the IM client 22. Since the IM client 21 can know the information of the file directory (including all the files contained in the file directory) in advance, after a file is transmitted, the IM client 21 can determine whether all the files in the file directory are completely transmitted, if not, the file is continuously transmitted, otherwise, the peer-to-peer connection is disconnected.
It can be seen from the above flow that, in the process of transmitting the file directory to the IM client 22, the IM client 21 only needs to establish a session connection once, and the file directory transmission process uses the session connection, which saves the overhead of establishing the session connection and improves the transmission performance compared with the prior art in which the sender IM client needs to establish the session connection with the receiver IM client before transmitting the file each time.
Another embodiment of the present application can be obtained by modifying the flow shown in fig. 2. In this embodiment, after the point-to-point connection with the IM client 22 is established, the IM client 21 may first send the entire directory structure information (all folders included and the hierarchical relationship between the folders) of the file directory to be transmitted, so that the IM client 22 may establish the corresponding file directory according to the file directory structure information; the operation of the subsequent IM client 21 when sending the file is basically the same as the above-mentioned flow, except that the sent notification message may only carry the location information of the current folder in the file directory, and accordingly, after receiving the notification message, the IM client 22 does not need to establish the folder, but locates the corresponding folder in the established file directory, and stores the file received thereafter into the located folder root directory.
Since a point-to-point file transfer connection between the IM client 21 and the IM client 22 may not be successfully established, for example, the IM client 22 is not online, another embodiment of the present application provides for the transfer of files in the file directory using server relay. Of course, the IM client 21 may also directly transfer the files in the file directory by means of server relay.
Referring to fig. 3, a schematic diagram of a process for implementing file transmission based on a file directory by using a server transfer mode is provided in the embodiment of the present application. In this embodiment, the IM server 10 is described as an example of a relay server. When the IM client 21 acts as a sender client to transmit a file in the file directory to the IM client 22, the process may be as shown in fig. 3, and includes the following steps:
step 301, the IM client 21 establishes a session connection with the IM server 10, where the session connection is used for subsequent file directory transmission;
step 302, the IM client 21 sends the name of a folder in the file directory to be transmitted and the location information of the folder in the file directory to the IM server 10 in the form of a notification message; the IM server 10 receives the notification message and then forwards it to the IM client 22;
step 303, after receiving the notification message, the IM client 22 creates a folder according to the folder name carried therein and the location information of the folder in the file directory;
step 304, the IM client 21 sends the files in the folder root directory to the IM server 10 one by one, and the IM server 10 forwards the received files to the IM client 22;
step 305, the IM client 22 stores the received file in the root directory of the newly created folder;
the steps 302-305 are repeatedly executed until all folders in the file directory to be transmitted and the files under the root directory thereof are completely transmitted (see step 306), so that a file directory which has the same structure as the file directory transmitted by the IM client 21 and contains the same files is formed in the IM client 22. After the file directory transfer is completed, the above-described session connection for the file directory transfer can be torn down between the IM client 21 and the IM server 10, and between the IM client 22 and the IM server 10.
In the flow shown in fig. 3, the server for relay may have a certain buffer space, and may buffer the message or file data sent by the IM client 21, and then send the buffered message or file data to the IM client 22.
Another embodiment of the present application may be obtained by modifying the flow shown in fig. 3. In this embodiment, the IM client 21 may first send the entire directory structure information (all the folders and the hierarchical relationship between the folders) of the file directory to be transmitted, so that the IM client 22 may establish the corresponding file directory according to the file directory structure information; the operation of the subsequent IM client 21 when sending the file is basically the same as the above-mentioned flow, except that the sent notification message may only carry the location information of the current folder in the file directory, and accordingly, after receiving the notification message, the IM client 22 does not need to establish the folder, but locates the corresponding folder in the established file directory, and stores the file received thereafter into the located folder root directory.
Preferably, in the above embodiment of the present application, before transmitting a file in a file directory, the IM client 21 may send information such as the total size of the storage space of all files in the file directory, the number of files included in the file directory, and the like to the IM client 22 through a transmission request, so that the IM client 22 may determine whether the storage space of the file directory meets a predefined data amount limitation condition of the file directory, and/or whether the number of files meets the predefined file number limitation condition, or whether the device where the IM client is located has enough storage space to store all files in the file directory, and return a response to accept or reject the file directory transmission request to the IM client 21 according to the determination result.
Preferably, in the above embodiment of the present application, before sending the file, the IM client 21 may further perform compression processing on the file, and then transmit the compressed file, and the IM client 22 performs decompression operation after receiving the compressed file, so as to reduce system resources occupied in the file transmission process and reduce the file transmission delay. The IM clients 21, 22 may call a third-party compression tool to compress/decompress the file, or integrate a file compression/decompression function module into the IM clients 21, 22, and the IM clients 21, 22 call the module to compress/decompress the file.
The process of the IM client 21 transmitting a file directory to the IM client 22 is described in detail below, taking a specific file directory as an example.
In this example, the structure of the file directory to be transferred may be as shown in fig. 4, which is a general, typical file directory structure. In the figure, Folder1 (Folder 1) is a root Folder of the File directory, and the root directory of Folder1 has two folders 2 (Folder 2), Folder3 (Folder 3) and three files File11 (File 1), File2 (File 2) and File3 (File 3); below the root directory of Folder3 is a File7 (File 7); folder2 has two folders 4 (Folder 4), Folder5 (Folder 5) and three files File4 (File 4), File5 (File 5) and File6 (File 6) under the root directory, wherein Folder4 (Folder 4) has three files File8 (File 8), File9 (File 9) and File10 (File 10) under the root directory, and Folder5 has one File11 (File 11) under the root directory.
The present embodiment is based on the IM communication system shown in fig. 1, and transmits the file in the file directory with the structure shown in fig. 4, and the transmission flow is as follows:
the IM client 21 attempts to establish a P2P connection with the IM client 22 and if the P2P connection is not successful, the connection is made through IM server relay. The process is described by taking the example that the IM client 21 successfully establishes the P2P connection with the IM client 22.
The IM client 21 sends a transmission request message to the IM client 22, wherein the transmission request message carries the total size information of the file directory to be transmitted; after receiving the transmission request message, the IM client 22 determines whether there is enough storage space to store the file directory locally, and if there is enough storage space, returns a response to receive the transmission request; if not, the transmission fails, and the whole file directory transmission process is finished;
after receiving the response of accepting the transmission request, the IM client 21 uses Folder1 as the Folder for the first transmission, and sends a notification message to the IM client 22, where the notification message carries the name of the Folder1 and the location information of the Folder in the file directory. Since Folder1 is the root Folder of the file directory to be sent, the notification message indicates that the location of the Folder is the root Folder of the file directory. The IM client 22 receives the notification message sent by the IM client 21, and establishes a folder according to the folder name contained in the notification message and the position of the folder in the file directory;
the IM client 21 compresses files File1, File2 and File3 under Folder1 root directories one by one and transmits the compressed files to the IM client 22; the IM client 22 receives the compressed file transmitted by the IM client 21, decompresses the compressed file and stores the decompressed file in the created Folder1 Folder root directory;
after the IM client 21 transmits the files in the Folder1 root directory, it sends a notification message to the IM client 22, where the notification message carries the name of the Folder2 Folder and its location information in the file directory (e.g., Folder1/Folder2, which indicates that Folder2 is a subfolder of Folder 1); the IM client 22 receives the notification message sent by the IM client 21, and creates a Folder according to the Folder name contained in the notification message and the location of the Folder in the file directory (i.e., creates a Folder2 Folder under the Folder1 Folder);
the IM client 21 compresses files File4, File5 and File6 under Folder2 root directories one by one and transmits the compressed files to the IM client 22; the IM client 22 receives the compressed file transmitted by the IM client 21, decompresses the compressed file and stores the decompressed file in the Folder2 Folder root directory created by the IM client;
in this way, after the IM client 21 transmits all folders in the file directory to the IM client 22, the file directory having the same structure as the file directory transmitted by the IM client 21 is stored in the device where the IM client 22 is located, and the file directory transmission process is ended.
In the above flow, the file directory establishing process at the IM client 22 side is gradually established in the file transmission process based on the file directory, and another alternative is:
the IM client 21 first includes the entire structure information of the file directory (all included folders and the hierarchical relationship between the folders) in the transmission request message and sends the transmission request message to the IM client 22, and the IM client 22 establishes a corresponding file directory according to the file directory structure information; the operation of the subsequent IM client 21 when sending the file is basically the same as the above procedure, and only the location information of the current Folder in the file directory may be carried in the sent notification message (for example, before transmitting the file under the Folder2 Folder root directory, the location information of Folder2 Folder: Folder1/Folder2 is sent to the IM client 22 through the notification message); accordingly, after the IM client 22 receives the notification message, it is not necessary to establish a folder, but locates a corresponding folder in the established file directory, and stores the received file in the located folder root directory, so as to also implement file directory transmission between IM clients.
Based on the same technical concept, the embodiment of the application also provides a structure of the IM client.
Referring to fig. 5, a schematic structural diagram of an IM client provided in the embodiment of the present application is shown, where the IM client includes: a sending module 501 and a receiving module 502, wherein:
a sending module 501, configured to send files under each folder root directory in a file directory to other file directory transmission clients one by one, where before sending a file under each root directory for each folder, a notification message is first sent, where the notification message carries a name of a current folder and location information of the current folder in the file directory, and then all files under the current folder root directory are sent one by one;
a receiving module 502, configured to receive a notification message sent by another file directory transmission client and carrying a folder name and location information of the folder in the file directory, create a folder according to the notification message, and store a file received thereafter (i.e., after the notification message) in a root directory of the created folder.
Preferably, the IM client further comprises: a file decompression/compression module 503. The module is used for compressing the file to be sent by the sending module 501 and decompressing the file received by the receiving module 502; the sending module 501 sends the compressed file when sending the file.
For the IM client, an alternative of the sending module 501 is: the method comprises the steps that structural information of the whole file directory is sent to other file directory transmission clients firstly, then files under the root directories of all the file directories in the file directory are sent one by one, wherein before the files under the root directories of each file folder are sent, notification messages carrying position information of the current file folder in the file directory are sent firstly, and then all the files under the root directory of the file folder are sent one by one;
accordingly, an alternative to the receiving module 502 is: receiving file directory structure information sent by other file directory transmission clients, and creating a file directory according to the file directory structure information; and receiving a notification message which is sent by the other file directory transmission client and carries the position information of the file folder in the file directory, positioning the file folder in the created file directory according to the notification message, and storing the received file in the root directory of the positioned file folder.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (19)

1. A file transmission method based on a file directory is characterized by comprising the following steps:
the method comprises the steps that a sender instant messaging IM client sends files under each folder root directory in a file directory one by one folder, wherein a notification message is sent firstly before sending the files under the root directory of each folder, the notification message carries the name of a current folder and the position information of the current folder in the file directory, and then all the files under the current folder root directory are sent one by one;
and the receiver IM client creates a folder according to the received notification message and saves the file sent after the notification message to the root directory of the created folder.
2. The method of claim 1, wherein the sender IM client sends the notification message and the file via a point-to-point connection with a recipient IM client; the IM client of the receiver receives the notification message and the file sent by the IM client of the sender through the point-to-point connection; alternatively, the first and second electrodes may be,
the IM client of the sender sends the notification message and the file to the server through the connection with the server; and the receiver IM client receives the notification message and the file sent by the sender IM client from the server through the connection between the receiver IM client and the server.
3. The method according to claim 1 or 2, wherein the sending IM client, before sending the files under each folder root directory in the file directory, further comprises the steps of: sending a transmission request message carrying the size information of the file directory storage space;
and after receiving the transmission request message, the IM client of the receiver sends a response message for receiving the transmission request of the file directory if the IM client of the receiver judges that the equipment where the IM client of the receiver is located has enough storage space to store the file directory according to the size information of the storage space carried in the transmission request message.
4. The method according to claim 1 or 2, characterized in that when the sender IM client sends a file, it first compresses the file and then sends the compressed file;
and after receiving the file, the IM client of the receiver restores the file through decompression.
5. A file directory-based file transfer system, comprising:
the IM client of the sender is used for sending files under the root directories of all the folders in the file directories one by one, wherein before sending the files under the root directories of each folder, a notification message is sent firstly, wherein the notification message carries the name of the current folder and the position information of the current folder in the file directories, and then all the files under the root directories of the current folder are sent one by one;
and the receiver IM client is used for creating a folder according to the received notification message and saving the file sent after the notification message to the root directory of the created folder.
6. The system of claim 5, wherein the sender IM client sends the notification message and the file via a point-to-point connection with a recipient client;
and the IM client of the receiver receives the notification message and the file through the point-to-point connection.
7. The system of claim 5, further comprising:
the server is used for receiving the notification message and the file sent by the sender IM client through the connection with the sender IM client; and sending the received notification message and the file to the receiver IM client through the connection with the receiver IM client.
8. A file directory-based file transfer client, comprising:
the sending module is used for sending files under the root directories of the folders in the file directories to other file directory transmission clients one by one, wherein before sending the files under the root directories of each folder, a notification message is sent firstly, wherein the notification message carries the name of the current folder and the position information of the current folder in the file directories, and then all the files under the root directories of the current folder are sent one by one;
and the receiving module is used for receiving a notification message which is sent by other file directory transmission clients and carries the name of the folder and the position information of the folder in the file directory, creating the folder according to the notification message, and storing the file sent after the notification message under the root directory of the created folder.
9. The client of claim 8, further comprising: a file decompression/compression module;
the file decompression/compression module is used for compressing the file to be sent by the sending module and decompressing the file received by the receiving module;
and the sending module sends the compressed file when sending the file.
10. A file transmission method based on a file directory is characterized by comprising the following steps:
the method comprises the steps that a sender IM client firstly sends structural information of a whole file directory, then sends files under root directories of all the file directories one by one, wherein before sending the files under the root directories of each file folder, a notification message carrying the name of a current file folder and position information of the current file folder in the file directory is sent firstly, and then all the files under the root directories of the current file folders are sent one by one;
and the receiver IM client creates a file directory according to the received file directory information, locates a folder in the created file directory according to the received notification message, and stores the file sent after the notification message in a root directory of the located folder.
11. The method of claim 10, wherein a sender IM client sends the file directory structure information, the notification message, and the file via a point-to-point connection with a receiver IM client; the IM client of the receiver receives the file directory structure information, the notification message and the file sent by the IM client of the sender through the point-to-point connection; alternatively, the first and second electrodes may be,
the IM client of the sender sends the file directory structure information, the notification message and the file to a server through the connection between the IM client and the server; and the receiver IM client receives the file directory structure information, the notification message and the file from the server through the connection with the server.
12. The method according to claim 10 or 11, characterized in that a sending side IM client sends the file directory structure information carried in a transmission request message, the transmission request message also carrying the file directory storage space size information;
and after receiving the transmission request message, the receiver IM client establishes a file directory and sends a response message for receiving the file directory transmission request if the device where the receiver IM client is positioned has enough storage space to store the file directory according to the storage space size information carried in the message.
13. The method according to claim 10 or 11, characterized in that when the sender IM client sends the file, it first compresses the file to be sent, and then sends the compressed file;
and after receiving the file, the IM client of the receiver restores the file through decompression.
14. A file directory-based file transfer system, comprising:
the IM client of the sender is used for firstly sending the structure information of the whole file directory, then sending the files under the root directories of the folders in the file directory one by one, wherein before sending the files under the root directories of each folder, firstly sending a notification message carrying the name of the current folder and the position information of the folder in the file directory, and then sending all the files under the root directory of the folder one by one;
and the receiver IM client is used for creating a file directory according to the received file directory information, positioning a folder in the created file directory according to the received notification message, and storing the file sent after the notification message in a root directory of the positioned folder.
15. The system of claim 14, wherein the sender IM client sends the file directory's structure information, the notification message, and the file through a point-to-point connection with a receiver client;
and the receiver IM client receives the structural information of the file directory, the notification message and the file through the point-to-point connection.
16. The system of claim 14, further comprising:
the server is used for receiving the file directory structure information, the notification message and the file sent by the sender IM client through the connection with the sender IM client; and sending the received file directory structure information, the notification message and the file to a receiver IM client through the connection with the receiver IM client.
17. A file directory-based file transfer client, comprising:
the sending module is used for sending the structure information of the whole file directory to other file directory transmission clients firstly, then sending the files under the root directories of the file directories one by one, wherein before sending the files under the root directories of each file folder, a notification message carrying the name of the current file folder and the position information of the file folder in the file directory is sent firstly, and then sending all the files under the root directory of the file folder one by one;
the receiving module is used for receiving the file directory structure information sent by other file directory transmission clients and creating a file directory according to the file directory structure information; and receiving a notification message which is sent by the other file directory transmission client and carries the position information of the file folder in the file directory, positioning the file folder in the created file directory according to the notification message, and storing the file sent after the notification message under the root directory of the positioned file folder.
18. The client of claim 17, further comprising: a file decompression/compression module;
the file decompression/compression module is used for compressing the file to be sent by the sending module and decompressing the file received by the receiving module;
and the sending module sends the compressed file when sending the file.
19. A file transmission method based on a file directory is characterized by comprising the following steps:
the instant messaging IM client of a sender sends a notification message carrying the name of a current folder and the position information of the current folder, and then sends all files under a root directory of the current folder one by one;
and the receiver IM client creates a folder according to the received notification message and saves the file sent after the notification message to the root directory of the created folder.
HK11108391.5A 2011-08-10 File transferring method based on file directory with device and system thereof HK1154140A (en)

Publications (1)

Publication Number Publication Date
HK1154140A true HK1154140A (en) 2012-04-20

Family

ID=

Similar Documents

Publication Publication Date Title
CN102025515A (en) File directory based file transmission method, device and system
JP5499019B2 (en) File folder transmission over the network
CN101395838B (en) Data synchronization method, system and apparatus
US8930476B2 (en) Instant messaging (IM) file folder transmission method and system
CN103634195A (en) Communication method and device
KR20160039280A (en) Messaging api over http protocol to establish context for data exchange
CN103647701B (en) The control method and device of instantaneous communication system message forwarding
CN104320328A (en) Message synchronization method, terminal and server
CN102857403B (en) Instant messaging client data sharing method and system
CN107508747A (en) Group communication method, server and computer storage medium for converged communication
HK1154140A (en) File transferring method based on file directory with device and system thereof
TWI484808B (en) File transfer method based on archival directory and its device and system
CN103516584B (en) A kind of method and device for transmitting file in instant messaging
CN107734058A (en) A kind of fusion WebService and FTP Distributed Experiment data transmission method
KR101328028B1 (en) System and method for message transmission based on session
Munagala Ubiquitous Application Data Collection in a Disconnected Distributed System
TWI444839B (en) Folder transfer system, folder transfer device and folder transfer method
CN102209067A (en) System, method and client side for obtaining latest contact information from instant messaging
CN121173366A (en) Communication processing method, device, electronic equipment and computer readable storage medium
CN103581344A (en) Method, device and system for processing interface entry
CN102638362A (en) Method and system for managing user generated content
HK1166573A1 (en) Method and apparatus for transmitting folder
HK1166573B (en) Method and apparatus for transmitting folder