Method and system for dynamically adjusting space capacity at the moment of uploading folder

A dynamic adjustment and folder technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of upload failure, insufficient hard disk space capacity, inaccurate hard disk space capacity, etc., and achieve the effect of improving accuracy.

Active Publication Date: 2013-01-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are two traditional ways to deduct space capacity. One is to upload a folder each time, scan the folder to calculate the total size of the folder, and allocate the total hard disk space of the server at one time. However, if the upload task is suspended, And after modifying the folder locally, resuming the upload may lead to inaccurate hard disk space allocated for uploading; the other is that each time a folder is uploaded, the total size of the folder is not allocated first, but the total size of each file is initiated. Upload, and then allocate the corresponding space occupied by the file, but when multiple files are uploaded in parallel, some files may fail to upload due to insufficient hard disk space on the server

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
  • Method and system for dynamically adjusting space capacity at the moment of uploading folder
  • Method and system for dynamically adjusting space capacity at the moment of uploading folder
  • Method and system for dynamically adjusting space capacity at the moment of uploading folder

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The technical solution will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0048] Such as figure 1 As shown, in one embodiment, a method for dynamically adjusting space capacity when uploading a folder includes the following steps:

[0049] Step S110, acquiring a user's request for uploading a folder.

[0050] When a user uploads a folder, a request for uploading a folder is initiated, and the client obtains the request and sends the request to the server.

[0051] Step S120, traversing the folder to acquire local file information in the folder.

[0052] After the upload request is obtained, the folder is traversed to obtain all local file information in the folder and recorded in the file list. The local file information includes the name of the local file and the content of the local file.

[0053] Step S130, compare the local file information with the file information on the server, mark the local file, the mark ...

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

The invention relates to a method and a system for dynamically adjusting space capacity at the moment of uploading a folder. The method comprises the following steps: obtaining a request of uploading the folder by a user; going through the folder, obtaining local file information in the folder; comparing the local file information with the file information on a server; marking the local file, wherein the mark includes a first mark and a second mark, obtaining the space capacity of the local file marked to be the second mark, distributing the space capacity on the server in advance; beginning to upload the local file; obtaining the mark of the uploaded local file, judging whether the local file exists on the server to generate a judgment result; obtaining an operation of the user on the local file, dynamically adjusting the space capacity according to the user operation, the judgment result and marks. According to the method and the system for dynamically adjusting the space capacity at the moment of uploading the folder, normal uploading of the folder is guaranteed, and the precision ratio of distributing the space capacity can be improved.

Description

【Technical field】 [0001] The invention relates to computer processing technology, in particular to a method and system for dynamically adjusting space capacity when uploading folders. 【Background technique】 [0002] Upload the folder to the server, and the hard disk space capacity of the server will allocate the space capacity of the folder size. [0003] There are two traditional ways to deduct space capacity. One is to upload a folder each time, scan the folder to calculate the total size of the folder, and allocate the total hard disk space of the server at one time. However, if the upload task is suspended, And after modifying the folder locally, resuming the upload may lead to inaccurate hard disk space allocated for uploading; the other is that each time a folder is uploaded, the total size of the folder is not allocated first, but the total size of each file is initiated. Upload, and then allocate the corresponding space occupied by the file, but when multiple files ...

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 邓宇峰李静
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products