CN109871361B - File uploading method and device, electronic equipment and readable storage medium - Google Patents
File uploading method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN109871361B CN109871361B CN201811419494.1A CN201811419494A CN109871361B CN 109871361 B CN109871361 B CN 109871361B CN 201811419494 A CN201811419494 A CN 201811419494A CN 109871361 B CN109871361 B CN 109871361B
- Authority
- CN
- China
- Prior art keywords
- compressed file
- electronic device
- file
- folder
- target folder
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a file uploading method, a device, electronic equipment and a readable storage medium. The method comprises the following steps: obtaining a compressed file to be uploaded; when an uploading instruction for a compressed file is received, detecting whether the compressed file contains a target folder or not; wherein, the target folder is: in the process of generating the compressed file, a folder generated by an operating system of a second electronic device generating the compressed file; if not, uploading the compressed file to a server; if yes, deleting the target folder in the compressed file to obtain a new compressed file, and uploading the new compressed file to the server. By applying the embodiment of the invention, the compressed file which does not contain the target folder can be uploaded to the server, so that the waste of storage resources of the server is reduced.
Description
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a method and apparatus for uploading a file, an electronic device, and a readable storage medium.
Background
Currently, it is often necessary to upload the compressed file to a server, and the manner in which the compressed file is uploaded to the server is: and directly uploading the compressed file to a server.
The inventors have discovered in practicing the present invention that in generating a compressed file, the operating system of an electronic device often generates folders and adds the folders to the compressed file. Thus, current file upload methods require that the server provide storage space to store these folders. These folders are typically not useful to the user, and thus waste storage resources of the server.
Disclosure of Invention
The embodiment of the invention aims to provide a novel file uploading method, a novel file uploading device, electronic equipment and a readable storage medium, so that waste of storage resources of a server is reduced. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for uploading a file, where the method is applied to a first electronic device, and the method may include:
obtaining a compressed file to be uploaded;
when an uploading instruction for a compressed file is received, detecting whether the compressed file contains a target folder or not; wherein, the target folder is: in the process of generating the compressed file, a folder generated by an operating system of a second electronic device generating the compressed file;
if not, uploading the compressed file to a server;
if yes, deleting the target folder in the compressed file to obtain a new compressed file, and uploading the new compressed file to the server.
Optionally, the step of detecting whether the compressed file contains the target folder may include:
decompressing the compressed file to obtain a decompressed file;
and when the operating systems of the first electronic device and the second electronic device are different, searching whether the target folder exists in the decompressed file.
Optionally, after the step of decompressing the compressed file to obtain the decompressed file, the method may further include:
when the operating systems of the first electronic device and the second electronic device are the same, setting the folder in the hidden state in the decompressed file to be in a visible state, and searching whether the target folder exists in the decompressed file.
Optionally, the step of searching whether the target folder exists in the decompressed file may include:
determining the arrangement order of each file and folder in the decompressed files; the arrangement order is ordered according to the modification time of each file and folder;
judging whether a target folder exists in the folders in the preset sorting area.
Optionally, the second electronic device may include: microsoft operating system electronics or apple operating system electronics; when the second electronic device is an apple operating system electronic device, the target folder may include: MACOSX folder.
In a second aspect, an embodiment of the present invention provides a file uploading device, which is applied to a first electronic device, where the device may include:
the obtaining module is used for obtaining the compressed file to be uploaded;
the detection module is used for detecting whether the compressed file contains a target folder or not when an uploading instruction for the compressed file is received; wherein, the target folder is: in the process of generating the compressed file, a folder generated by an operating system of a second electronic device generating the compressed file;
the first uploading module is used for uploading the compressed file to the server when detecting that the compressed file does not contain the target folder;
and the second uploading module is used for deleting the target folder in the compressed file when detecting that the target folder is contained in the compressed file, obtaining a new compressed file, and uploading the new compressed file to the server.
Optionally, in an embodiment of the present invention, the detection module may include:
the decompression unit is used for decompressing the compressed file to obtain a decompressed file;
and the first judging unit is used for searching whether the target folder exists in the decompressed file or not when the operating systems of the first electronic equipment and the second electronic equipment are different.
Optionally, in an embodiment of the present invention, the apparatus may further include:
and the second judging unit is used for setting the folder in the hidden state in the decompressed file to be in a visible state when the operating systems of the first electronic device and the second electronic device are the same, and searching whether the target folder exists in the decompressed file.
Optionally, in an embodiment of the present invention, the first determining unit may specifically be configured to:
when the operating systems of the first electronic device and the second electronic device are different, determining the arrangement order of each file and folder in the decompressed files; the arrangement order is ordered according to the modification time of each file and folder;
judging whether a target folder exists in the folders in the preset sorting area.
Optionally, in an embodiment of the present invention, the second electronic device may include: microsoft operating system electronics or apple operating system electronics; when the second electronic device is an apple operating system electronic device, the target folder includes: MACOSX folder.
In a third aspect, an embodiment of the present invention provides a first electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any file uploading method when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, in which a computer program is stored, where the computer program, when executed by a processor of a first electronic device, implements method steps of any one of the file uploading methods described above.
In a fifth aspect, embodiments of the present invention also provide a computer program product comprising instructions that, when run on a first electronic device, cause the first electronic device to perform: the method steps of any one of the file uploading methods.
In the embodiment of the invention, the first electronic device can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for uploading files according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a file uploading device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The inventor finds that in the process of implementing the present invention, after the electronic device compresses the file and/or the folder to obtain a compressed file, the compressed file includes: often, the user will include a target folder in addition to the files and/or folders that the user wants to compress. Wherein the target folder is: in generating the compressed file, a folder is generated by an operating system of the electronic device. Moreover, the target folder is set to a hidden state, i.e., the target folder is invisible to the user. In addition, the uploading speed of the file is an important index of file uploading, and slowing down the uploading speed can influence the file uploading experience of a user. Thus, compressed files are typically not detected during uploading of the compressed files.
The inventor also finds that the uploading mode of directly uploading the compressed file in the prior art can upload the target folder to the server, so that the waste of storage resources of the server can be caused.
In order to solve the technical problems, the embodiment of the invention provides a novel file uploading method, a device, electronic equipment and a readable storage medium.
The file uploading method provided by the embodiment of the invention is firstly explained below.
The file uploading method provided by the embodiment of the invention can be applied to the first electronic equipment. The first electronic device includes, but is not limited to, a desktop computer, a notebook computer, and a server.
Referring to fig. 1, the file uploading method may include the steps of:
s101: obtaining a compressed file to be uploaded;
s102: when an uploading instruction for a compressed file is received, detecting whether the compressed file contains a target folder or not; wherein, the target folder is: in the process of generating the compressed file, a folder generated by an operating system of a second electronic device generating the compressed file; if not, executing step S103; if yes, go to step S104;
the compressed file to be uploaded may be a Zip compressed packet or an RAR compressed packet, which is not limited to this. And, the compressed file to be uploaded is: and the second electronic equipment compresses the file to be compressed and/or the folder to be compressed by using a compression algorithm.
It is understood that the compression algorithm includes, but is not limited to, a Zip compression algorithm and a RAR compression algorithm. In addition, the second electronic device and the first electronic device may be the same electronic device or different electronic devices, which is reasonable.
When the first electronic device and the second electronic device are different electronic devices, and the operating systems of the first electronic device and the second electronic device are different, the first electronic device may detect whether the compressed file contains the target folder. Specifically, the first electronic device may decompress the compressed file to obtain a decompressed file; then, it is searched whether the target folder exists in the decompressed file. Further, it may be determined whether the target folder exists in the compressed file.
For example, the first electronic device is a microsoft operating system electronic device and the second electronic device is an apple operating system electronic device. And after the second electronic equipment compresses the file A, generating a compressed file to be uploaded. Wherein, the compressed file includes, in addition to the file a, the compressed file further includes: in generating the compressed file, a target folder is generated by an apple operating system of the second electronic device. In this example, after obtaining the compressed file, the first electronic device may decompress the compressed file, thereby obtaining a decompressed file, and may then find whether the target folder exists in the decompressed file.
The inventor finds that the second electronic device with the operating system being an apple operating system will set the target folder to a hidden state in the process of implementing the invention, that is, the target folder is not visible to the user when the user clicks the compressed file in the second electronic device. However, when the first electronic device, which is the microsoft operating system, acquires the compressed file, the user clicks on the compressed file in the first electronic device, the target folder is visible to the user. That is, when the first electronic device is a microsoft operating system electronic device and the second electronic device is an apple operating system electronic device, the target folder is in a visible state after the first electronic device obtains the decompressed file. In this case, the first electronic device may find whether the target folder exists in the displayed decompressed file.
The inventor also found that, after the second electronic device of the operating system being the apple operating system generates the compressed file, the target folder included in the compressed file includes: MACOSX folder.
In addition, when the first electronic device and the second electronic device are the same electronic device, the operating systems of the first electronic device and the second electronic device are the same. Assume that the operating system of the first electronic device is an apple operating system. Then, after obtaining the decompressed file, the first electronic device may also set the folder in the hidden state in the decompressed file to the visible state. Then, it can be found whether the target folder exists in the displayed decompressed file. Further, it may be determined whether the target folder exists in the compressed file.
The specific operation of searching whether the target folder exists in the decompressed file may be: the arrangement order of the individual files and folders in the decompressed file is determined. Wherein the arrangement order is ordered according to the modification time (i.e. modification sequence) of each file and folder. Then, whether the target folder exists in the folders in the preset sorting area is judged. In this way, it is possible to detect only whether or not the target folder exists in the folders located in the preset sorting area, thereby improving the detection speed.
S103: uploading the compressed file to a server;
s104: deleting the target folder in the compressed file to obtain a new compressed file, and uploading the new compressed file to the server.
When the compressed file is detected to not contain the target folder, the compressed file can be directly uploaded to the server. When the compressed file is detected to contain the target file, the target file in the compressed file can be deleted to obtain a new compressed file, and the new compressed file is uploaded to the server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
In combination with the above, the inventor has found that the electronic device of the apple operating system generates a target folder during the process of generating the compressed file. In addition, the inventors have found that the electronic device of the microsoft operating system does not generate the target folder during the process of generating the compressed file. Therefore, when the first electronic device is the electronic device of the apple operating system and the target folder is detected to be included in the compressed file, the first electronic device can call the preset compression software to compress the decompressed file after the target folder is deleted, so that a new compressed file is obtained. The preset compression software comprises the following steps: and software for generating the target folder in the process of generating the compressed file. This is reasonable.
In the embodiment of the invention, the first electronic device can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
The file uploading method provided by the embodiment of the invention is explained below with reference to specific examples.
The second electronic device in the embodiment of the invention is a device provided with an apple operating system, the first electronic device is a device provided with a Windows operating system or a Linux operating system, and the server is a cloud storage server. In addition, the interface designer generates a compressed file for the skin picture by using the second electronic device, wherein the compressed file is a skin resource package to be uploaded to the cloud storage server. The interface device personnel then transmits the compressed file to the first electronic device via the second electronic device.
After the first electronic device receives the compressed file, an operator can upload the compressed file to the cloud storage server through the first electronic device. In the uploading process, the first electronic device may detect whether the compressed file includes a_macosx folder. Since the compressed file is generated in the second electronic device with the apple operating system installed, the first electronic device can detect that the compressed file contains the MACOSX folder. The MACOSX folder in the compressed file may then be deleted, then a new compressed file may be regenerated, and the new compressed file may be uploaded to the server. Therefore, the cloud storage space occupied by the skin resource package is reduced, and the cloud storage resource overhead of the company where the operator is reduced.
In addition, for the case that the compressed file does not contain the MACOSX folder, the first electronic device may directly upload the compressed file to the cloud storage server.
In summary, by applying the embodiment of the invention, the compressed file which does not contain the target folder can be uploaded to the server, so that the waste of storage resources of the server is reduced.
Corresponding to the above method embodiment, the embodiment of the present invention provides a file uploading device, which is applied to a first electronic device, and referring to fig. 2, the device may include:
an obtaining module 201, configured to obtain a compressed file to be uploaded;
a detection module 202, configured to detect, when an upload instruction for a compressed file is received, whether the compressed file includes a target folder; wherein, the target folder is: in the process of generating the compressed file, a folder generated by an operating system of a second electronic device generating the compressed file;
a first uploading module 203, configured to upload the compressed file to a server when detecting that the compressed file does not include the target folder;
and the second uploading module 204 is configured to delete the target folder in the compressed file to obtain a new compressed file when detecting that the compressed file contains the target folder, and upload the new compressed file to the server.
By applying the device provided by the embodiment of the invention, the first electronic equipment can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
Alternatively, in an embodiment of the present invention, the detection module 202 may include:
the decompression unit is used for decompressing the compressed file to obtain a decompressed file;
and the first judging unit is used for searching whether the target folder exists in the decompressed file or not when the operating systems of the first electronic equipment and the second electronic equipment are different.
Optionally, in an embodiment of the present invention, the apparatus may further include:
and the second judging unit is used for setting the folder in the hidden state in the decompressed file to be in a visible state when the operating systems of the first electronic device and the second electronic device are the same, and searching whether the target folder exists in the decompressed file.
Optionally, in an embodiment of the present invention, the first determining unit may specifically be configured to:
when the operating systems of the first electronic device and the second electronic device are different, determining the arrangement order of each file and folder in the decompressed files; the arrangement order is ordered according to the modification time of each file and folder;
judging whether a target folder exists in the folders in the preset sorting area.
Optionally, in an embodiment of the present invention, the second electronic device includes: microsoft operating system electronics or apple operating system electronics; when the second electronic device is an apple operating system electronic device, the target folder includes: MACOSX folder.
Corresponding to the above-mentioned method embodiment, the present invention further provides a first electronic device, see fig. 3, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete communication with each other through the communication bus 304;
a memory 303 for storing a computer program;
the processor 301 is configured to implement the method steps of any one of the file uploading methods described above when executing the program stored in the memory 303.
In the embodiment of the invention, the first electronic device can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a readable storage medium, in which a computer program is stored, where the computer program, when executed by the processor of the first electronic device, implements the method steps of any one of the file uploading methods described above.
After the computer program stored in the readable storage medium provided by the embodiment of the invention is executed by the processor of the first electronic device, the first electronic device can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
Corresponding to the above method embodiments, the present invention also provides a computer program product comprising instructions which, when run on a first electronic device, cause the first electronic device to perform the method steps of any of the above file upload methods.
After the computer program product provided by the embodiment of the invention is executed by the processor of the first electronic device, the first electronic device can obtain the compressed file to be uploaded. And, when receiving an upload instruction for the compressed file, the first electronic device may detect whether the compressed file contains the target folder. Since the target folder is: in generating the compressed file, the folder generated by the operating system of the second electronic device that generated the compressed file, i.e., the target folder is a folder that is not needed by the user. Therefore, when detecting that the compressed file contains the target folder, the first electronic device may delete the target folder in the compressed file, thereby obtaining a new compressed file, and further upload the new compressed file to the server. In addition, when the compressed file is detected not to contain the target folder, the compressed file can be directly uploaded to a server. Therefore, the compressed file which does not contain the target folder can be uploaded to the server, and the waste of storage resources of the server is reduced.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, first electronic device, readable storage medium and computer program product embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, as relevant see also part of the description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (8)
1. A method for uploading a file, the method being applied to a first electronic device, the method comprising:
obtaining a compressed file to be uploaded;
when an uploading instruction for the compressed file is received, detecting whether the compressed file contains a target folder or not; wherein the target folder is: in the process of generating the compressed file, generating a folder by an operating system of a second electronic device for generating the compressed file;
if not, uploading the compressed file to a server;
if so, deleting the target folder in the compressed file to obtain a new compressed file, and uploading the new compressed file to a server;
the step of detecting whether the compressed file contains the target folder comprises the following steps:
decompressing the compressed file to obtain a decompressed file;
when the operating systems of the first electronic device and the second electronic device are different, searching whether the target folder exists in the decompressed file or not;
after the step of decompressing the compressed file to obtain a decompressed file, the method further includes:
when the operating systems of the first electronic device and the second electronic device are the same, setting the folder in the hidden state in the decompressed file to be in a visible state, and searching whether the target folder exists in the decompressed file.
2. The method of claim 1, wherein the step of finding whether the target folder exists in the decompressed file comprises:
determining the arrangement order of each file and folder in the decompressed files; the arrangement order is ordered according to the modification time of each file and folder;
and judging whether the target folder exists in the folders in the preset sorting area.
3. The method according to claim 1 or 2, wherein the second electronic device comprises: microsoft operating system electronics or apple operating system electronics; when the second electronic device is an apple operating system electronic device, the target folder includes: MACOSX folder.
4. A file uploading device, characterized in that it is applied to a first electronic device, said device comprising:
the obtaining module is used for obtaining the compressed file to be uploaded;
the detection module is used for detecting whether the compressed file contains a target folder or not when an uploading instruction for the compressed file is received; wherein the target folder is: in the process of generating the compressed file, generating a folder by an operating system of a second electronic device for generating the compressed file;
the first uploading module is used for uploading the compressed file to a server when the compressed file is detected to not contain the target folder;
the second uploading module is used for deleting the target folder in the compressed file when the target folder is detected to be contained in the compressed file, obtaining a new compressed file, and uploading the new compressed file to a server;
the detection module comprises:
the decompression unit is used for decompressing the compressed file to obtain a decompressed file;
the first judging unit is used for searching whether the target folder exists in the decompressed file or not when the operating systems of the first electronic device and the second electronic device are different;
and the second judging unit is used for setting the folder in the hidden state in the decompressed file to be in a visible state when the operating systems of the first electronic device and the second electronic device are the same, and searching whether the target folder exists in the decompressed file.
5. The apparatus according to claim 4, wherein the first judging unit is specifically configured to:
when the operating systems of the first electronic device and the second electronic device are different, determining the arrangement order of each file and folder in the decompressed files; the arrangement order is ordered according to the modification time of each file and folder;
and judging whether the target folder exists in the folders in the preset sorting area.
6. The apparatus of claim 4 or 5, wherein the second electronic device comprises: microsoft operating system electronics or apple operating system electronics; when the second electronic device is an apple operating system electronic device, the target folder includes: MACOSX folder.
7. A first electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1-3 when executing a program stored on a memory.
8. A readable storage medium, characterized in that it has stored therein a computer program which, when executed by a processor of a first electronic device, implements the method steps of any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811419494.1A CN109871361B (en) | 2018-11-26 | 2018-11-26 | File uploading method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811419494.1A CN109871361B (en) | 2018-11-26 | 2018-11-26 | File uploading method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109871361A CN109871361A (en) | 2019-06-11 |
CN109871361B true CN109871361B (en) | 2023-05-23 |
Family
ID=66917003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811419494.1A Active CN109871361B (en) | 2018-11-26 | 2018-11-26 | File uploading method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109871361B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352912B (en) * | 2020-03-10 | 2024-04-12 | Oppo广东移动通信有限公司 | Compressed file processing method, device, storage medium, terminal and server |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11272521A (en) * | 1998-03-25 | 1999-10-08 | Matsushita Electric Ind Co Ltd | File management device |
CN102377688A (en) * | 2010-08-19 | 2012-03-14 | 阿里巴巴集团控股有限公司 | File transmission method and equipment |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
CN102682013A (en) * | 2011-03-14 | 2012-09-19 | 盛乐信息技术(上海)有限公司 | Method for operating compressed file in network storage appliance |
CN102833188A (en) * | 2012-09-04 | 2012-12-19 | 上海量明科技发展有限公司 | Method, client and system for displaying transmission file in instant messaging |
CN103873438A (en) * | 2012-12-12 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Compression packet uploading and duplication-removing system and method |
CN104965731A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Data processing method and electronic terminal |
CN105045598A (en) * | 2015-08-07 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Java-based web front-end performance optimization and online method and system |
CN105095300A (en) * | 2014-05-16 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method and system for database backup |
CN105630554A (en) * | 2015-12-22 | 2016-06-01 | 广东欧珀移动通信有限公司 | Reinstallation method for third-party application and user terminal |
CN106161523A (en) * | 2015-04-02 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of data processing method and equipment |
CN106202273A (en) * | 2016-06-30 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | File management method and system |
CN106227744A (en) * | 2016-07-12 | 2016-12-14 | 努比亚技术有限公司 | Terminal document managing device, terminal and terminal document management method |
CN106227867A (en) * | 2016-07-29 | 2016-12-14 | 努比亚技术有限公司 | A kind of method and device of file management |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107291673A (en) * | 2017-05-19 | 2017-10-24 | 广州视源电子科技股份有限公司 | Document processing method and system, readable storage medium and computer equipment |
JP2018005522A (en) * | 2016-06-30 | 2018-01-11 | 富士通株式会社 | File presentation program, file presentation device, and file presentation method |
CN108197204A (en) * | 2017-12-28 | 2018-06-22 | 北京安博通科技股份有限公司 | Document handling method and device |
CN108259585A (en) * | 2018-01-05 | 2018-07-06 | 携程旅游信息技术(上海)有限公司 | Call center's recording cloud storage method, system, equipment and storage medium |
CN108874591A (en) * | 2018-06-19 | 2018-11-23 | Oppo广东移动通信有限公司 | Document handling method and Related product |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050172284A1 (en) * | 2004-01-30 | 2005-08-04 | Dandekar Shree A. | Method and system for automated generation of customized factory installable software |
US7698644B2 (en) * | 2005-04-26 | 2010-04-13 | Cisco Technology, Inc. | System and method for displaying sticky notes on a phone |
US8484162B2 (en) * | 2008-06-24 | 2013-07-09 | Commvault Systems, Inc. | De-duplication systems and methods for application-specific data |
US9633022B2 (en) * | 2012-12-28 | 2017-04-25 | Commvault Systems, Inc. | Backup and restoration for a deduplicated file system |
US9575673B2 (en) * | 2014-10-29 | 2017-02-21 | Commvault Systems, Inc. | Accessing a file system using tiered deduplication |
-
2018
- 2018-11-26 CN CN201811419494.1A patent/CN109871361B/en active Active
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11272521A (en) * | 1998-03-25 | 1999-10-08 | Matsushita Electric Ind Co Ltd | File management device |
CN102377688A (en) * | 2010-08-19 | 2012-03-14 | 阿里巴巴集团控股有限公司 | File transmission method and equipment |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
CN102682013A (en) * | 2011-03-14 | 2012-09-19 | 盛乐信息技术(上海)有限公司 | Method for operating compressed file in network storage appliance |
CN102833188A (en) * | 2012-09-04 | 2012-12-19 | 上海量明科技发展有限公司 | Method, client and system for displaying transmission file in instant messaging |
CN103873438A (en) * | 2012-12-12 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Compression packet uploading and duplication-removing system and method |
CN105095300A (en) * | 2014-05-16 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method and system for database backup |
CN106161523A (en) * | 2015-04-02 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of data processing method and equipment |
CN104965731A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Data processing method and electronic terminal |
CN105045598A (en) * | 2015-08-07 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Java-based web front-end performance optimization and online method and system |
CN105630554A (en) * | 2015-12-22 | 2016-06-01 | 广东欧珀移动通信有限公司 | Reinstallation method for third-party application and user terminal |
CN106202273A (en) * | 2016-06-30 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | File management method and system |
JP2018005522A (en) * | 2016-06-30 | 2018-01-11 | 富士通株式会社 | File presentation program, file presentation device, and file presentation method |
CN106227744A (en) * | 2016-07-12 | 2016-12-14 | 努比亚技术有限公司 | Terminal document managing device, terminal and terminal document management method |
CN106227867A (en) * | 2016-07-29 | 2016-12-14 | 努比亚技术有限公司 | A kind of method and device of file management |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107291673A (en) * | 2017-05-19 | 2017-10-24 | 广州视源电子科技股份有限公司 | Document processing method and system, readable storage medium and computer equipment |
CN108197204A (en) * | 2017-12-28 | 2018-06-22 | 北京安博通科技股份有限公司 | Document handling method and device |
CN108259585A (en) * | 2018-01-05 | 2018-07-06 | 携程旅游信息技术(上海)有限公司 | Call center's recording cloud storage method, system, equipment and storage medium |
CN108874591A (en) * | 2018-06-19 | 2018-11-23 | Oppo广东移动通信有限公司 | Document handling method and Related product |
Non-Patent Citations (1)
Title |
---|
让压缩解压更合你愿;楚南;《电脑爱好者》;20160215(第04期);第46-47页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109871361A (en) | 2019-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160085404A1 (en) | Mobile Application Configuration | |
KR102230505B1 (en) | Conditional saving of input data | |
CN110471709B (en) | Method, device, medium and electronic equipment for accelerating webpage opening speed | |
CN103825938A (en) | Method of downloading resources and device | |
US20180341769A1 (en) | Threat detection method and threat detection device | |
US20170199889A1 (en) | Method and device for identifying junk picture files | |
CN110688353A (en) | File management method, device and computer readable medium | |
CN109472540A (en) | Method and device for business processing | |
CN114969840A (en) | Data leakage prevention method and device | |
CN109871361B (en) | File uploading method and device, electronic equipment and readable storage medium | |
CN109976828B (en) | Method and device for configuring file | |
CN103729400A (en) | Method and device for browsing file system of mobile terminal | |
CN104572943A (en) | Installation-free program cleaning method and device | |
CN114741686A (en) | Method and device for detecting program white list and related equipment | |
CN112256820B (en) | Document positioning method and device | |
CN108804195B (en) | Page display method and device, server and client | |
US9207925B2 (en) | Platform specific payload management | |
US20200257662A1 (en) | Junk Feature Acquisition Method, Apparatus, Server and Readable Storage Medium | |
CN113722193A (en) | Method and device for detecting page abnormity | |
CN114546522B (en) | Picture configuration method and device for application, electronic equipment and storage medium | |
CN112835609A (en) | Method and device for modifying dependent package download address | |
CN111241368A (en) | Data processing method, device, medium and equipment | |
CN111263936A (en) | Electronic terminal and junk file processing method thereof | |
CN114398233B (en) | Load abnormality detection method and device, server and storage medium | |
CN113312002B (en) | Data processing method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190613 Address after: Room A-3010, 2nd floor, No. 3 Courtyard, 30 Shixing Street, Shijingshan District, Beijing Applicant after: BEIJING LEWO WUXIAN TECHNOLOGY CO.,LTD. Address before: Kamana Bay Applicant before: LIVE.ME Inc. |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |