Unlock instant, AI-driven research and patent intelligence for your innovation.

A file processing method and device

A file processing and file technology, applied in the computer field, can solve the problem of inability to perform concurrent operations on the same specified file resource at the same time

Inactive Publication Date: 2017-07-14
PEKING UNIV FOUNDER GRP CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides a file processing method and device to solve the problem in the prior art that concurrent operations cannot be performed on the same specified file resource at the same time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A file processing method and device
  • A file processing method and device
  • A file processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 2 It is a flow chart of a file processing method provided by Embodiment 1. In Embodiment 1, after the upload is successful, the file of the next version is replaced with the file of the current version and provided to the user as a specified file resource, and then the file of the next version is deleted. The current version file, specifically includes the following steps:

[0032] S201. Receive an uploaded next version file for updating the current version file, and before the upload is successful, the current version file is provided to the user as a designated file resource for processing.

[0033] During specific implementation, an ID can be set for the file. The above-mentioned current version file ID is different from the next version file ID; when uploading the next version file, the current version file will not be overwritten, and the user can update the current version file. Downloads the current version of a file that is a resource for the specified ...

Embodiment 2

[0038] image 3 It is a flow chart of a file processing method provided in Embodiment 2. In Embodiment 2, after the upload is successful, the current version file is deleted first, and then the next version file is replaced with the current version file and provided as a specified file resource Handle it to the user, specifically including the following steps:

[0039] S301. Receive and upload a next version file for updating the current version file, and before the upload is successful, the above current version file is provided to the user as a designated file resource for processing.

[0040] S302. After uploading successfully, record the next version file as an updated version file of the current version file.

[0041] During specific implementation, the corresponding relationship between the next version file ID and the current version ID may be recorded.

[0042] S303. Determine that the above-mentioned current version file is not currently being downloaded; if it is det...

Embodiment 3

[0046] Figure 4 A flowchart of a file processing method provided in Embodiment 3. After step S304 in Embodiment 2 and before step S305, if a download request for downloading the current version file as a specified file resource is received, the following steps can be performed for processing :

[0047] S401. Receive a download request for downloading a current version file as a specified file resource.

[0048] S402. Determine that the file currently serving as the specified file resource is the current version file.

[0049] S403. Determine the updated version file of the current version file, and proceed to step S405. If the updated version file of the current version file cannot be determined, proceed to step S404.

[0050] During specific implementation, the current version file ID can be obtained, and according to step S302 in the second embodiment, it is searched whether there is a record of the next version file corresponding to the current version file as an updated...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A file processing method and device provided by an embodiment of the present invention receives and uploads the next version file used to update the current version file, and before the upload is successful, the above-mentioned current version file is provided to the user as a specified file resource for processing; After the upload is successful, the above-mentioned next-version file is provided to the user as the above-mentioned specified file resource instead of the current-version file. The problem in the prior art that concurrent operations cannot be performed on the same specified file resource is solved. The present invention relates to the field of computer technology.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a file processing method and device. Background technique [0002] In today's Internet applications, especially the concept of "cloud", users are more dependent on the Internet, and the interaction between users and the Internet is more frequent. Users can upload file resources to the server and share them with other users, or download the file resources they need from the server. [0003] For file resources stored on the server, each file resource has a large number of users performing concurrent operations. Concurrent operations refer to multiple users updating, downloading, or deleting the same file resource at the same time. In the interaction process between users and the Internet, concurrent operations mainly include concurrent operations of update operations and download operations (that is, multiple users perform update and download operations on the same file resource...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 韩宁
Owner PEKING UNIV FOUNDER GRP CO LTD