File storage method, deletion method, server and storage medium
AssigneeWangsu Science & Technology Co., Ltd.
InventorZhiyang LAI
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relate to the field of storage technologies, and provide a file storage method, a deletion method, a server, and a storage medium. The file storage method includes receiving a file to-be-stored, detecting, in stored storage files, whether there is a storage file that is same as the file to-be-stored, and when there is the storage file that is same as the file to-be-stored, generating a path pointing to a storage address of the storage file same as the file to-be-stored, and storing the path generated as the file to-be-stored. With the embodiments of the present disclosure, a same file is stored only once in a file storage process, such that a storage space may be optimized.
Claims20
A file storage and deletion method, comprising:
- receiving a file to-be-stored;
- detecting, in stored storage files, whether there is a storage file that is same as the file to-be-stored;
- and
- if there is the storage file that is same as the file to-be-stored, generating a path pointing to a storage address of the storage file same as the file to-be-stored, and storing the path generated as the file to-be-stored.
A server, comprising:
- least one processor;
- and
- a memory communicably coupled to the at least one processor, wherein:
- the memory stores instructions executable by the at least one processor, and when the instructions are executed, the at least one processor is configured for:
- receiving a file to-be-stored;
- detecting, in stored storage files, whether there is a storage file that is same as the file to-be-stored;
- and
- when there is the storage file that is same as the file to-be-stored, generating a path pointing to a storage address of the storage file same as the file to-be-stored, and storing the path generated as the file to-be-stored.
A non-transitory computer readable storage medium, stored with a computer program, wherein, when the computer program is executed, a processor is configured for:
- receiving a file to-be-stored;
- detecting, in stored storage files, whether there is a storage file that is same as the file to-be-stored;
- and
- when there is the storage file that is same as the file to-be-stored, generating a path pointing to a storage address of the storage file same as the file to-be-stored, and storing the path generated as the file to-be-stored.
Dependencies are inferred from the claim text.