CN107105058A - Folder transmission method and mobile terminal - Google Patents

Folder transmission method and mobile terminal Download PDF

Info

Publication number
CN107105058A
CN107105058A CN201710372016.9A CN201710372016A CN107105058A CN 107105058 A CN107105058 A CN 107105058A CN 201710372016 A CN201710372016 A CN 201710372016A CN 107105058 A CN107105058 A CN 107105058A
Authority
CN
China
Prior art keywords
file
attribute
transmitted
folder
receiving terminal
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
CN201710372016.9A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710372016.9A priority Critical patent/CN107105058A/en
Publication of CN107105058A publication Critical patent/CN107105058A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems

Abstract

The invention discloses a kind of mobile terminal, it includes memory, processor and is stored in the file transmission procedure that can run on the memory and on the processor, and file transmission procedure realizes following steps when being executed by processor:The catalogue of file to be transmitted is obtained, catalogue is the list information of each object in file to be transmitted;The attribute of each object in catalogue is determined successively, and the attribute of object includes folder attribute and file attribute;The object of file attribute is transmitted to receiving terminal according to default FTP;The object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and using the object of folder attribute as file to be transmitted, repeats above-mentioned steps until the file to be transmitted is transmitted.Compared with prior art, the present invention need not carry out packing and unpacking in file transmitting procedure, improve transmission rate, and avoid the occupancy of extra disk space.

Description

Folder transmission method and mobile terminal
Technical field
The present invention relates to file transfer technology field, more particularly to a kind of folder transmission method and mobile terminal.
Background technology
Dodge and pass, its target is the communication port got through between mobile phone and mobile phone, sharing between smart mobile phone can be allowed by dodging to pass Become simpler, its principle is transmitted using mobile phone wifi network card.When by dodging the application transfers such as biography text When part is pressed from both sides, its process for transmitting file is illustrated below, so that terminal A transmits file to terminal B as an example:First, terminal A File waiting for transmission is packed, then by the file of packing by network transmission to terminal B, terminal B receives packing After file, unpacked, so as to complete the transmission to whole file.In the transmitting procedure, for terminal A, due to needing File is packed, thus on terminal A can simultaneously exist one packing file and an original file, The file of the packing can additionally take certain disk space, if not carrying out data compression in packing process, the text packed Part folder can take presss from both sides identical space with original document, even if having carried out data compression, the file of packing can also take necessarily Disk space;Similarly, for terminal B, terminal B is received after the file of packing, can be unpacked to obtain being transmitted File, should during the file that can have the file of packing simultaneously and unpack on terminal B, equivalent to occupying two parts of magnetic Disk space.
Above-mentioned folder transmission method, it is another on the one hand than relatively time-consuming because transmitting procedure can be related to packing, unpacking The file of aspect packing can also take extra disk space, be unfavorable for saving the use to disk space.
Therefore, it is necessary to provide a kind of folder transmission method and mobile terminal to solve above-mentioned technical problem.
The content of the invention
It is a primary object of the present invention to propose a kind of folder transmission method and mobile terminal, it is intended to solve file biography Time-consuming during defeated, the extra technical problem for taking disk space.
First, to achieve the above object, the present invention provides a kind of mobile terminal, and the mobile terminal includes memory, place Manage device and be stored in the file transmission procedure that can be run on the memory and on the processor, the file transmission Following steps are realized when program is by the computing device:
The catalogue of file to be transmitted is obtained, the catalogue is the list letter of each object in the file to be transmitted Breath;
The attribute of each object in the catalogue is determined successively, and the attribute of the object includes folder attribute and file belongs to Property;
The object of file attribute is transmitted to receiving terminal according to default FTP;
The object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and by folder attribute The object as file to be transmitted, repeat above-mentioned steps until the file to be transmitted be transmitted.
Alternatively, the processor is additionally operable to perform the file transmission procedure, to realize following steps:
The object of file attribute is long according to first symbol, transmission mode, object oriented, destination path, object pattern, object The transformat that degree, contents of object, end mark are arranged in order is transmitted to receiving terminal so that the receiving terminal sets up described right accordingly As wherein the transmission mode represents the attribute of the object, the object pattern represents the authority of the object.
Alternatively, the processor is additionally operable to perform the file transmission procedure, to realize following steps:
By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, end The transformat being arranged in order is accorded with to transmit to receiving terminal so that the receiving terminal sets up the object accordingly.
Alternatively, the processor is additionally operable to perform the file transmission procedure, to realize following steps:
Receive after first symbol, into reception state;
The transmission mode according to receiving judges the attribute of the object, if the attribute of the object belongs to for file Property, then the object is generated according to default FTP, if the attribute of the object is folder attribute, according to pre- If file host-host protocol generate the object;
Before the step of catalogue of the acquisition file to be transmitted, the processor is additionally operable to perform the file biography Defeated program, to realize following steps:
The socket that the transmitting terminal is set up with the receiving terminal is connected.
To achieve the above object, the present invention also provides a kind of folder transmission method, applied to mobile terminal, the file Folder transmission method comprises the following steps:
The catalogue of file to be transmitted is obtained, the catalogue is the list letter of each object in the file to be transmitted Breath;
The attribute of each object in the catalogue is determined successively, and the attribute of the object includes folder attribute and file belongs to Property;
The object of file attribute is transmitted to receiving terminal according to default FTP;
The object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and by folder attribute The object as file to be transmitted, repeat above-mentioned steps until the file to be transmitted be transmitted.
Alternatively, the step of object by file attribute is transmitted to receiving terminal according to default FTP is wrapped Include:
The object of file attribute is long according to first symbol, transmission mode, object oriented, destination path, object pattern, object The transformat that degree, contents of object, end mark are arranged in order is transmitted to receiving terminal so that the receiving terminal sets up described right accordingly As wherein the transmission mode represents the attribute of the object, the object pattern represents the authority of the object.
Alternatively, the object by folder attribute is transmitted to the step of receiving terminal according to default file host-host protocol Suddenly include:
By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, end The transformat being arranged in order is accorded with to transmit to receiving terminal so that the receiving terminal sets up the object accordingly.
Alternatively, the step of receiving terminal sets up the object accordingly includes:
Receive after first symbol, into reception state;
The transmission mode according to receiving judges the attribute of the object;
If the attribute of the object is file attribute, the object is generated according to default FTP;
If the attribute of the object is folder attribute, the object is generated according to default file host-host protocol.
Alternatively, also include before the step of transmitting terminal obtains the catalogue of file to be transmitted:
The socket that the transmitting terminal is set up with the receiving terminal is connected.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Be stored with file transmission procedure on storage medium, and such as above-mentioned file is realized when the file transmission procedure is executed by processor The step of pressing from both sides transmission method.
Compared to prior art, folder transmission method, mobile terminal and computer-readable storage proposed by the invention Medium, when transmitting file, determines the attribute of multiple objects in file to be transmitted successively, and by the object of file attribute Receiving terminal is directly transferred to according to default FTP, the object of folder attribute is transmitted according to default file Agreement is directly transferred to receiving terminal, while judging the category of each subobject in it using recursive fashion to the object of folder attribute Property and be transmitted, until file to be transmitted in all the elements transmit to receiving terminal, due to this document press from both sides transmitting procedure In need not carry out packing and unpacking, therefore transmission rate can be improved, and avoid the occupancy of extra disk space.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of file transmission procedure first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of file transmission procedure second embodiment of the present invention;
Fig. 5 is the implementation process diagram of folder transmission method first embodiment of the present invention;
Fig. 6 is the implementation process diagram of folder transmission method second embodiment of the present invention;
Fig. 7 is schematic diagrames of the mobile terminal A to one embodiment during mobile terminal B transmission files;
Fig. 8 is the schematic diagram of the embodiment of file one to be transmitted;
Fig. 9 is the schematic diagram of the embodiment of transmitting procedure one of object 3.
Reference:
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera) Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on the above-mentioned hardware configuration of mobile terminal 1 00 and communications network system, each embodiment of the inventive method is proposed.
First, the present invention proposes a kind of file transmission procedure 400.
As shown in figure 3, being the high-level schematic functional block diagram of the first embodiment of file transmission procedure 400 of the present invention.In this reality Apply in example, the file transmission procedure 400 can be divided into one or more modules, one or more of module storages (it is the controller in the present embodiment in the memory 109 of the mobile terminal 1 00, and by one or more processors 110) it is performed, to complete the present invention.For example, in figure 3, the file transmission procedure 400 can be divided into catalogue and obtain Modulus block 401, attribute determination module 402, the first transport module 403 and the second transport module 404.Module alleged by the present invention Refer to a kind of series of computation machine programmed instruction section that can complete specific function, than computer program more suitable for description software Implementation procedure in the mobile terminal 1 00.Above-mentioned each functional module 401-404 concrete function will be carried out below detailed Description.Wherein:
The catalogue acquisition module 401, the catalogue for obtaining file to be transmitted, the catalogue is the text to be transmitted The list information of each object in part folder.
Specifically, file transmission procedure 400 of the present invention is applied to the process that transmitting terminal transmits file to receiving terminal, its Middle transmitting terminal and receiving terminal can be mobile terminal shown in Fig. 1.The present embodiment transmits file with mobile terminal A to mobile terminal B Illustrated exemplified by folder, refer to Fig. 7, Fig. 7 is signals of the mobile terminal A to one embodiment during mobile terminal B transmission files Figure, wherein mobile terminal A is used as receiving terminal as transmitting terminal, mobile terminal B.Refer to when mobile terminal A receives file transmission When making, the catalogue of file to be transmitted is obtained, the catalogue is the list information of each object in the file to be transmitted, such as For file k to be transmitted, if include in file k to be transmitted object 1, object 2, object 3, object 4, object 5 totally 5 it is right As the catalogue then now obtained is the relevant information of this 5 objects, wherein each object in file k to be transmitted is probably File (i.e. continues to include multiple objects) in sub-folder, file, it is also possible to file, wherein file can be picture, Various types of files such as audio, video, word document.Fig. 8 is refer to, Fig. 8 is the signal of the embodiment of file one to be transmitted Figure, as shown in figure 8, in the present embodiment, file to be transmitted includes 3 objects, and wherein object 1 is picture, and object 2 is word texts Shelves, object 3 is to include 2 objects in a sub-folder, the sub-folder again, respectively audio 1 and audio 2, then the catalogue Include the information such as storage location, size, attribute, the content of each object.
The attribute determination module 402, the attribute for determining each object in the catalogue successively, the category of the object Property include folder attribute and file attribute, if the attribute of the object be file attribute, perform the first transport module 403, If the attribute of the object is folder attribute, the second transport module 404 is performed.Wherein, the attribute of object includes file Attribute and file attribute, if the attribute of object is folder attribute, then it represents that the object is a file, if the attribute of object For file attribute, then it represents that the object is a file.For embodiment illustrated in fig. 8, attribute determination module 402 is specially:It is first The attribute of object 1 is first determined, because object 1 is file attribute, therefore the first transport module 403 is performed, continues determination pair afterwards As 2 attribute, object 2 is file attribute, performs the first transport module 403, continues to determine the attribute of object 3 afterwards, object 3 is Folder attribute, therefore perform the second transport module 404.
First transport module 403, for by the object of file attribute according to default FTP transmit to Receiving terminal.
In the present invention, default FTP is as shown in table 1:
Table 1
As it can be seen from table 1 the first transport module 403 is specially:By the object of file attribute according to first symbol, transmission mould The transformat that formula, object oriented, destination path, object pattern, object length, contents of object, end mark are arranged in order is carried out Transmission, wherein transmission mode are used for the attribute for representing object, and destination path represents to store the object to the position of receiving terminal, right As pattern is used to representing the authority of object, such as read-only authority, it is readable can write permission, object length is used to represent shared by the object Memory space, contents of object represents the particular content of the object, and first symbol and end mark are used to representing object transfer Beginning and end, for differentiating multiple objects.In addition, in default FTP shown in table 1, it is also prespecified often Space shared by individual configured transmission, as shown in table 1, first symbol take 8 bytes, and transmission mode takes 4 bytes, object name Claim to take 128 bytes, destination path takes 128 bytes, and object pattern takes 4 bytes, and object length takes 4 words Section, contents of object takes N number of byte, and end mark takes 4 bytes, wherein the byte shared by contents of object be it is uncertain, It is relevant with the size of object, it is necessary to which specification, the space shared by each configured transmission is prespecified by programmer , its space size taken can also be other settings.
Second transport module 404, for the object of folder attribute to be passed according to default file host-host protocol Receiving terminal is transported to, and the object of folder attribute is repeated into file transmission procedure 400 as file to be transmitted Until the file to be transmitted is transmitted.
Specifically, for the object of folder attribute, due to also including multiple objects in the object, therefore this document is pressed from both sides The object of attribute repeats step S501 to step S504 until whole as new file to be transmitted, using recursive mode Individual file to be transmitted is transmitted.Specifically, for embodiment illustrated in fig. 8, refer to Fig. 9, Fig. 9 is the transmitting procedure of object 3 The schematic diagram of one embodiment, wherein object 3 perform the son generated on the receive side after step S504 corresponding to object 3 in first time File, repeats file transmission procedure to object 3 afterwards and obtains complete object 3.
In the present invention, default file host-host protocol is as shown in table 2:
Table 2
From table 2 it can be seen that the object of folder attribute is transmitted to receiving terminal according to default file host-host protocol The step of include:By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, The transformat that end mark is arranged in order is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly.Wherein, transmit Pattern is used for the attribute for representing object, and destination path represents to store the object to the position of receiving terminal, and object pattern is used for table Show the authority of object, such as read-only authority, it is readable can write permission, first symbol and end mark are used to representing opening for object transfer Begin and terminate, for differentiating multiple objects.In addition, in default file host-host protocol shown in table 2, it is also prespecified often Space shared by individual configured transmission, as shown in table 2, first symbol take 8 bytes, and transmission mode takes 4 bytes, object name Claim to take 128 bytes, destination path takes 128 bytes, and object pattern takes 4 bytes, and end mark takes 4 bytes, Specification is needed, the space shared by each configured transmission is, its space size that takes prespecified by programmer Can also be other settings.
By above-mentioned module 401-404, file transmission procedure of the present invention is determined to be transmitted successively when transmitting file The attribute of multiple objects in file, and the object of file attribute is directly transferred to connect according to default FTP Receiving end, is directly transferred to receiving terminal, while to file by the object of folder attribute according to default file host-host protocol The object of attribute determines the attribute of its each interior subobject using recursive fashion and is transmitted, until in file to be transmitted All the elements are transmitted to receiving terminal, due to that need not carry out packing and unpacking in this document folder transmitting procedure, therefore can be improved Transmission rate, and avoid the occupancy of extra disk space.
Further, the first embodiment based on the invention described above file transmission procedure 400, proposes file of the present invention The second embodiment of transmission procedure 400.Fig. 4 is refer to, Fig. 4 is the work(of the second embodiment of file transmission procedure 400 of the present invention Energy module diagram, compared with first embodiment, in the present embodiment, file transmission procedure 400 also includes the He of link block 405 Object generation module 406.In the present embodiment, each functional module is described as follows:
The link block 405, is connected for setting up the transmitting terminal with the socket of the receiving terminal.
The object generation module 406, for after first symbol is received, into reception state;According to the institute received The attribute that transmission mode judges the object is stated, if the attribute of the object is file attribute, is transmitted according to default file Object described in protocol generation, if the attribute of the object is folder attribute, is generated according to default file host-host protocol The object.
Wherein, receiving terminal can be stored with default FTP and default file host-host protocol, work as receiving terminal When receiving data, corresponding configured transmission can be obtained according to corresponding transformat, and accordingly generate corresponding object.This In embodiment, after receiving terminal receives the data from transmitting terminal, can first determine whether 8 bytes being initially received whether be First symbol (Start), if so, then judging to carry out the transmitting procedure of an object, into reception state, receives follow-up data.
The transmitting procedure during object transfer of file attribute is exemplified below:Assuming that 512 bytes of mobile terminal A transmission are big Small file 123.txt to mobile terminal B sdcard, the then number that mobile terminal A is sent according to default FTP According to as shown in the table:
Wherein, File represents that the attribute of the object is file attribute.When mobile terminal B receives the data of 8 bytes, First determine whether whether 8 bytes are START, if so, then entering reception state, 4 bytes are continued to, if this 4 words Save as File, then judge that the object of mobile terminal A transmission, as file (i.e. the attribute of object is file attribute), is now continued to 128 bytes, using this 128 bytes as the title (being herein 123.txt) of object, continue to 128 bytes afterwards, will This 128 bytes are created on mobile terminal B pair as the destination path (being herein/sdcard) of object according to above- mentioned information As:/ sdcard/123.txt, continues to 8 bytes afterwards, using this 8 bytes as object object pattern (herein for 0644,0644 is used to represent the authority of object), and change/sdcard/123.txt authority is 0644, and 4 are continued to afterwards Individual byte, using this 4 bytes as the size (being herein 512) of object, continues to 512 bytes afterwards, by this 512 words Save and write object/sdcard/123.txt as the content of object, finally receive 4 bytes, 4 bytes are end mark herein (being herein END), this reception process terminates, and file 123.txt, which is created, to be completed.
Its transmitting procedure is illustrated below during the object transfer of folder attribute:Assuming that mobile terminal A transmits file Abc to mobile terminal B sdcard, then the data such as following table institute that mobile terminal A is sent according to default file host-host protocol Show:
START DIR abc /sdcard 0755 END
8bytes 4bytes 128bytes 128bytes 8bytes 4bytes
Wherein, DIR represents that the attribute of the object is folder attribute.When mobile terminal B receives the data of 8 bytes When, first determine whether whether 8 bytes are START, if so, then entering reception state, continue to 4 bytes, if this 4 Byte is DIR, then judge mobile terminal A transmission object as file (i.e. the attribute of object is folder attribute), now after 128 bytes are received in continued access, and using this 128 bytes as the title (being herein abc) of object, 128 bytes are continued to afterwards, Using this 128 bytes as the destination path (being herein/sdcard) of object, created according to above- mentioned information on mobile terminal B Object:/ sdcard/abc, continues to 8 bytes afterwards, using this 8 bytes as object object pattern (herein for 0755,0755 is used to represent the authority of object), and change/sdcard/abc authority is 0755, finally receives 4 bytes, this It is end mark (being herein END) to locate 4 bytes, and this time reception process terminates, and file abc, which is created, to be completed.Afterwards, according to recurrence Method continue to perform file transmission procedure to file abc until completing transmission to whole file abc.
By above-mentioned module 401-406, file transmission procedure 400 proposed by the invention when transmitting file, Determine the attribute of multiple objects in file to be transmitted successively, and by the object of file attribute according to first symbol, transmission mode, The transformat that object oriented, destination path, object pattern, object length, contents of object, end mark are arranged in order is transmitted to connecing Receiving end, by the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, end mark The transformat being arranged in order is transmitted to receiving terminal, and the receiving terminal is received after first symbol, into reception state, and according to right The attribute of elephant generates the object according to corresponding host-host protocol, while being determined to the object of folder attribute using recursive fashion The attribute of its each interior subobject is simultaneously transmitted, until all the elements in file to be transmitted are transmitted to receiving terminal, by Packing and unpacking need not be carried out in this document folder transmitting procedure, therefore transmission rate can be improved, and avoids extra disk The occupancy in space.
Further it is proposed that a kind of folder transmission method.
As shown in figure 5, being the implementing procedure figure of folder transmission method first embodiment of the present invention.In the present embodiment, According to different demands, the execution sequence of the step in flow chart shown in Fig. 5 can change, and some steps can be omitted.Institute Stating folder transmission method includes:
Step S501, transmitting terminal obtains the catalogue of file to be transmitted, and the catalogue is each in the file to be transmitted The list information of individual object.
Specifically, folder transmission method of the present invention is applied to the process that transmitting terminal transmits file to receiving terminal, wherein Transmitting terminal and receiving terminal can be mobile terminal shown in Fig. 1.The present embodiment transmits file with mobile terminal A to mobile terminal B Exemplified by illustrate, refer to Fig. 7, Fig. 7 be mobile terminal A to mobile terminal B transmit file when one embodiment schematic diagram, Wherein mobile terminal A is used as receiving terminal as transmitting terminal, mobile terminal B.When mobile terminal A receives file transmission instruction When, the catalogue of file to be transmitted is obtained, the catalogue is the list information of each object in the file to be transmitted, such as right In file k to be transmitted, if including object 1, object 2, object 3, object 4, object 5 totally 5 objects in file k to be transmitted, The catalogue then now obtained is the relevant information of this 5 objects, wherein each object in file k to be transmitted is probably file Folder (i.e. continuation includes multiple objects in sub-folder, file), it is also possible to file, wherein file can be picture, audio, Various types of files such as video, word document.Fig. 8 is refer to, Fig. 8 is the schematic diagram of the embodiment of file one to be transmitted, such as Shown in Fig. 8, in the present embodiment, file to be transmitted includes 3 objects, and wherein object 1 is picture, and object 2 is word document, right As 3 be respectively audio 1 and audio 2 again including 2 objects in sub-folder, the sub-folder, then the catalogue includes The information such as storage location, size, attribute, the content of each object.
Step S502, determines the attribute of each object in the catalogue successively, if the attribute of the object is file attribute, Step S503 is then performed, if otherwise the attribute of the object is folder attribute, execution step S504.
Wherein, the attribute of object includes folder attribute and file attribute, if the attribute of object is folder attribute, table It is a file to show the object, if the attribute of object is file attribute, then it represents that the object is a file.For Fig. 8 institutes Show embodiment, step S502 is specially:The attribute of object 1 is determined first, because object 1 is file attribute, therefore performs step 503, continue to determine the attribute of object 2 afterwards, object 2 is file attribute, performs step S503, continues to determine object 3 afterwards Attribute, object 3 is folder attribute, therefore performs step S504.
Step S503, the object of file attribute is transmitted to receiving terminal according to default FTP.
In the present invention, default FTP is as shown in table 3:
Table 3
From table 3 it can be seen that step S501 is specially:By the object of file attribute according to first symbol, transmission mode, object The transformat that title, destination path, object pattern, object length, contents of object, end mark are arranged in order is transmitted, its Middle transmission mode is used for the attribute for representing object, and destination path represents to store the object to the position of receiving terminal, object pattern Authority for representing object, such as read-only authority, it is readable can write permission, object length is used to represent storage shared by the object Space, contents of object represents the particular content of the object, first symbol and end mark be used for the beginning for representing an object transfer and Terminate, for differentiating multiple objects.In addition, in default FTP shown in table 3, also prespecified each transmission Space shared by parameter, as shown in table 3, first symbol take 8 bytes, and transmission mode takes 4 bytes, and object oriented takes 128 bytes, destination path takes 128 bytes, and object pattern takes 4 bytes, and object length takes 4 bytes, object Content takes N number of byte, and end mark takes 4 bytes, and wherein the byte shared by contents of object is uncertain, itself and object Size it is relevant, it is necessary to which specification, the space shared by each configured transmission is prespecified by programmer, it takes Space size can also for other setting.
Step S504, the object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and will The object of folder attribute repeats the step S501 extremely as file to be transmitted, return to step S501 S504 is until the file to be transmitted is transmitted.
Specifically, for the object of folder attribute, due to also including multiple objects in the object, therefore this document is pressed from both sides The object of attribute repeats step S501 to step S504 until whole as new file to be transmitted, using recursive mode Individual file to be transmitted is transmitted.Specifically, for embodiment illustrated in fig. 8, refer to Fig. 9, Fig. 9 is the transmitting procedure of object 3, Wherein object 3 performs the sub-folder generated on the receive side after step S504 corresponding to object 3 in first time, afterwards to object 3, which repeat step S501 to step S504, obtains complete object 3.
In the present invention, default file host-host protocol is as shown in table 4:
Table 4
From table 4, it can be seen that the object of folder attribute is transmitted to receiving terminal according to default file host-host protocol The step of include:By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, The transformat that end mark is arranged in order is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly.Wherein, transmit Pattern is used for the attribute for representing object, and destination path represents to store the object to the position of receiving terminal, and object pattern is used for table Show the authority of object, such as read-only authority, it is readable can write permission, first symbol and end mark are used to representing opening for object transfer Begin and terminate, for differentiating multiple objects.In addition, in default file host-host protocol shown in table 4, it is also prespecified often Space shared by individual configured transmission, as shown in table 4, first symbol take 8 bytes, and transmission mode takes 4 bytes, object name Claim to take 128 bytes, destination path takes 128 bytes, and object pattern takes 4 bytes, and end mark takes 4 bytes, Specification is needed, the space shared by each configured transmission is, its space size that takes prespecified by programmer Can also be other settings.
By above-mentioned steps S501-S504, folder transmission method of the present invention is determined to be passed successively when transmitting file The attribute of multiple objects in defeated file, and the object of file attribute is directly transferred to according to default FTP Receiving terminal, is directly transferred to receiving terminal, while to file by the object of folder attribute according to default file host-host protocol The object of folder attribute determines the attribute of its each interior subobject using recursive fashion and is transmitted, until in file to be transmitted All the elements transmit to receiving terminal, due to packing and unpacking need not be carried out in this document folder transmitting procedure, therefore can carry High transfer rate, and avoid the occupancy of extra disk space.
Further, based on above-mentioned first embodiment, the second embodiment of folder transmission method of the present invention is proposed.As schemed It is the implementing procedure figure of folder transmission method second embodiment of the present invention shown in 6.In the present embodiment, according to different need Ask, the execution sequence of the step in flow chart shown in Fig. 6 can change, and some steps can be omitted.The file transmission Method includes:
Step S601, sets up the socket connections of transmitting terminal and receiving terminal.
Step S602, transmitting terminal obtains the catalogue of file to be transmitted, and the catalogue is each in the file to be transmitted The list information of individual object.
Step S603, determines the attribute of each object in the catalogue successively, if the attribute of the object is file attribute, Step S604 is then performed, if otherwise the attribute of the object is folder attribute, execution step S605.
Step S604, by the object of file attribute according to first symbol, transmission mode, object oriented, destination path, object mould The transformat that formula, object length, contents of object, end mark are arranged in order is transmitted to receiving terminal.
Step S605, by the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object The transformat that pattern, end mark are arranged in order is transmitted to receiving terminal.
Step S606, the receiving terminal is received after first symbol, into reception state.
Wherein, receiving terminal can be stored with default FTP and default file host-host protocol, work as receiving terminal When receiving data, corresponding configured transmission can be obtained according to corresponding transformat, and accordingly generate corresponding object.This In embodiment, after receiving terminal receives the data from transmitting terminal, can first determine whether 8 bytes being initially received whether be First symbol (Start), if so, then judging to carry out the transmitting procedure of an object, into reception state, receives follow-up data.
Step S607, the attribute of the object is judged according to the transmission mode received, if the attribute of the object For file attribute, then step S608 is performed, if the attribute of the object is folder attribute, perform step S609.
Step S608, the object is generated according to default FTP.
It is illustrated below:Assuming that mobile terminal A transmits the file 123.txt of 512 byte-sizeds to mobile terminal B's Sdcard, the then data that mobile terminal A is sent according to default FTP are as shown in the table:
Wherein, File represents that the attribute of the object is file attribute.When mobile terminal B receives the data of 8 bytes, First determine whether whether 8 bytes are START, if so, then entering reception state, 4 bytes are continued to, if this 4 words Save as File, then judge that the object of mobile terminal A transmission, as file (i.e. the attribute of object is file attribute), is now continued to 128 bytes, using this 128 bytes as the title (being herein 123.txt) of object, continue to 128 bytes afterwards, will This 128 bytes are created on mobile terminal B pair as the destination path (being herein/sdcard) of object according to above- mentioned information As:/ sdcard/123.txt, continues to 8 bytes afterwards, using this 8 bytes as object object pattern (herein for 0644,0644 is used to represent the authority of object), and change/sdcard/123.txt authority is 0644, and 4 are continued to afterwards Individual byte, using this 4 bytes as the size (being herein 512) of object, continues to 512 bytes afterwards, by this 512 words Save and write object/sdcard/123.txt as the content of object, finally receive 4 bytes, 4 bytes are end mark herein (being herein END), this reception process terminates, and file 123.txt, which is created, to be completed.
Step S609, the object is generated according to default file host-host protocol, using the object as new to be passed Defeated file, repeats step S602 to step S609.
It is illustrated below:
Assuming that mobile terminal A transmits file abc to mobile terminal B sdcard, then mobile terminal A is according to default text The data that part folder host-host protocol is sent are as shown in the table:
START DIR abc /sdcard 0755 END
8bytes 4bytes 128bytes 128bytes 8bytes 4bytes
Wherein, DIR represents that the attribute of the object is folder attribute.When mobile terminal B receives the data of 8 bytes When, first determine whether whether 8 bytes are START, if so, then entering reception state, continue to 4 bytes, if this 4 Byte is DIR, then judge mobile terminal A transmission object as file (i.e. the attribute of object is folder attribute), now after 128 bytes are received in continued access, and using this 128 bytes as the title (being herein abc) of object, 128 bytes are continued to afterwards, Using this 128 bytes as the destination path (being herein/sdcard) of object, created according to above- mentioned information on mobile terminal B Object:/ sdcard/abc, continues to 8 bytes afterwards, using this 8 bytes as object object pattern (herein for 0755,0755 is used to represent the authority of object), and change/sdcard/abc authority is 0755, finally receives 4 bytes, this It is end mark (being herein END) to locate 4 bytes, and this time reception process terminates, and file abc, which is created, to be completed.Afterwards, according to recurrence Method continue to perform step S602 to step S609 to file abc until completing transmission to whole file abc.
By above-mentioned steps S601 to S609, folder transmission method of the present invention is being determined successively when transmitting file The attribute of multiple objects in file to be transmitted, and by the object of file attribute according to first symbol, transmission mode, object name The transformat that title, destination path, object pattern, object length, contents of object, end mark are arranged in order is transmitted to receiving terminal, The object of folder attribute is arranged successively according to first symbol, transmission mode, object oriented, destination path, object pattern, end mark The transformat of row is transmitted to receiving terminal, and the receiving terminal is received after first symbol, into reception state, and according to the category of object Property generate the object according to corresponding host-host protocol, while being determined to the object of folder attribute using recursive fashion in it respectively The attribute of individual subobject is simultaneously transmitted, until all the elements in file to be transmitted are transmitted to receiving terminal, due to this article Packing and unpacking need not be carried out in part folder transmitting procedure, therefore transmission rate can be improved, and avoids extra disk space Take.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, processor and is stored in the memory File transmission procedure that is upper and can running on the processor, when the file transmission procedure is by the computing device Realize following steps:
The catalogue of file to be transmitted is obtained, the catalogue is the list information of each object in the file to be transmitted;
The attribute of each object in the catalogue is determined successively, and the attribute of the object includes folder attribute and file attribute;
The object of file attribute is transmitted to receiving terminal according to default FTP;
The object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and by the institute of folder attribute Object is stated as file to be transmitted, above-mentioned steps are repeated until the file to be transmitted is transmitted.
2. mobile terminal as claimed in claim 1, it is characterised in that the processor is additionally operable to perform the file transmission Program, to realize following steps:
By the object of file attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, object length, The transformat that contents of object, end mark are arranged in order is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly, Wherein described transmission mode represents the attribute of the object, and the object pattern represents the authority of the object.
3. mobile terminal as claimed in claim 2, it is characterised in that the processor is additionally operable to perform the file transmission Program, to realize following steps:
By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, end mark according to The transformat of secondary arrangement is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly.
4. mobile terminal as claimed in claim 3, it is characterised in that the processor is additionally operable to perform the file transmission Program, to realize following steps:
Receive after first symbol, into reception state;
The transmission mode according to receiving judges the attribute of the object, if the attribute of the object is file attribute, The object is generated according to default FTP, if the attribute of the object is folder attribute, according to default File host-host protocol generates the object;
Before the step of catalogue of the acquisition file to be transmitted, the processor is additionally operable to perform the file transmission journey Sequence, to realize following steps:
The socket that the transmitting terminal is set up with the receiving terminal is connected.
5. a kind of folder transmission method, applied to mobile terminal, it is characterised in that the folder transmission method includes following Step:
The catalogue of file to be transmitted is obtained, the catalogue is the list information of each object in the file to be transmitted;
The attribute of each object in the catalogue is determined successively, and the attribute of the object includes folder attribute and file attribute;
The object of file attribute is transmitted to receiving terminal according to default FTP;
The object of folder attribute is transmitted to receiving terminal according to default file host-host protocol, and by the institute of folder attribute Object is stated as file to be transmitted, above-mentioned steps are repeated until the file to be transmitted is transmitted.
6. folder transmission method as claimed in claim 5, it is characterised in that the object by file attribute is according to default FTP include the step of transmit to receiving terminal:
By the object of file attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, object length, The transformat that contents of object, end mark are arranged in order is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly, Wherein described transmission mode represents the attribute of the object, and the object pattern represents the authority of the object.
7. folder transmission method as claimed in claim 6, it is characterised in that the object by folder attribute is according to pre- If file host-host protocol include the step of transmit to receiving terminal:
By the object of folder attribute according to first symbol, transmission mode, object oriented, destination path, object pattern, end mark according to The transformat of secondary arrangement is transmitted to receiving terminal so that the receiving terminal sets up the object accordingly.
8. folder transmission method as claimed in claim 7, it is characterised in that the receiving terminal sets up the object accordingly Step includes:
Receive after first symbol, into reception state;
The transmission mode according to receiving judges the attribute of the object;
If the attribute of the object is file attribute, the object is generated according to default FTP;
If the attribute of the object is folder attribute, the object is generated according to default file host-host protocol.
9. folder transmission method as claimed in claim 8, it is characterised in that the transmitting terminal obtains file to be transmitted Also include before the step of catalogue:
The socket that the transmitting terminal is set up with the receiving terminal is connected.
10. a kind of computer-readable recording medium, it is characterised in that be stored with file on the computer-readable recording medium Transmission procedure, realizes the file as any one of claim 5 to 9 when the file transmission procedure is executed by processor The step of pressing from both sides transmission method.
CN201710372016.9A 2017-05-24 2017-05-24 Folder transmission method and mobile terminal Pending CN107105058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710372016.9A CN107105058A (en) 2017-05-24 2017-05-24 Folder transmission method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710372016.9A CN107105058A (en) 2017-05-24 2017-05-24 Folder transmission method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107105058A true CN107105058A (en) 2017-08-29

Family

ID=59669487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710372016.9A Pending CN107105058A (en) 2017-05-24 2017-05-24 Folder transmission method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107105058A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN112399194A (en) * 2021-01-20 2021-02-23 腾讯科技(深圳)有限公司 Live data processing method and device, computer and readable storage medium
CN112469030A (en) * 2020-12-01 2021-03-09 北京小熊博望科技有限公司 Cross-terminal multi-file transmission method
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050270970A1 (en) * 2004-05-21 2005-12-08 Bea Systems, Inc. Failsafe service oriented architecture
CN101026551A (en) * 2006-10-10 2007-08-29 中山大学 File packing and unpacking method for communication transmission
CN101076031A (en) * 2006-12-06 2007-11-21 腾讯科技(深圳)有限公司 Method for applying network hard disk
CN101547161A (en) * 2008-03-28 2009-09-30 阿里巴巴集团控股有限公司 Folder transmission system, folder transmission device and folder transmission method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050270970A1 (en) * 2004-05-21 2005-12-08 Bea Systems, Inc. Failsafe service oriented architecture
CN101026551A (en) * 2006-10-10 2007-08-29 中山大学 File packing and unpacking method for communication transmission
CN101076031A (en) * 2006-12-06 2007-11-21 腾讯科技(深圳)有限公司 Method for applying network hard disk
CN101547161A (en) * 2008-03-28 2009-09-30 阿里巴巴集团控股有限公司 Folder transmission system, folder transmission device and folder transmission method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN112469030A (en) * 2020-12-01 2021-03-09 北京小熊博望科技有限公司 Cross-terminal multi-file transmission method
CN112399194A (en) * 2021-01-20 2021-02-23 腾讯科技(深圳)有限公司 Live data processing method and device, computer and readable storage medium
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium
CN114465972B (en) * 2021-06-11 2023-11-21 北京字跳网络技术有限公司 Method, apparatus, device and computer readable storage medium for folder transmission

Similar Documents

Publication Publication Date Title
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN107436779A (en) A kind of application management method, equipment and computer-readable recording medium
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107145385A (en) A kind of multitask interface display methods, mobile terminal and computer-readable storage medium
CN107133302A (en) Realize method, system, terminal and the computer-readable recording medium of data consistency
CN107220050A (en) Adaptive display method, terminal and computer-readable recording medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107729103A (en) A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN107105058A (en) Folder transmission method and mobile terminal
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107239522A (en) Picture storage method, equipment and computer-readable storage medium
CN107133151A (en) A kind of daily record data processing method, equipment and computer-readable recording medium
CN107506039A (en) Mobile terminal, data transmission method and computer-readable storage medium
CN107943494A (en) Distribution method and mobile terminal are applied by all kinds of means
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107818022A (en) Application programming interfaces merging method, mobile terminal and computer-readable recording medium
CN107766088A (en) Interface optimization method, system and computer-readable recording medium
CN107566608A (en) A kind of system air navigation aid, equipment and computer-readable recording medium
CN107247560A (en) Date storage method and mobile terminal
CN107748680A (en) A kind of kernel setup method, terminal and computer-readable recording medium
CN107241394A (en) A kind of log transmission method, device and computer-readable recording medium
CN107809527A (en) A kind of method and apparatus that prompt operation is presented

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: 20170829