CN112181911A - File deletion method and equipment - Google Patents

File deletion method and equipment Download PDF

Info

Publication number
CN112181911A
CN112181911A CN202011031251.8A CN202011031251A CN112181911A CN 112181911 A CN112181911 A CN 112181911A CN 202011031251 A CN202011031251 A CN 202011031251A CN 112181911 A CN112181911 A CN 112181911A
Authority
CN
China
Prior art keywords
file
content data
predetermined file
gas
predetermined
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
CN202011031251.8A
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.)
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Guangzhou Mobile R&D Center
Samsung Electronics 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 Samsung Guangzhou Mobile R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Guangzhou Mobile R&D Center
Priority to CN202011031251.8A priority Critical patent/CN112181911A/en
Publication of CN112181911A publication Critical patent/CN112181911A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Abstract

Provided are a file deletion method and device, wherein the file deletion method comprises the following steps: receiving an instruction for deleting a predetermined file, wherein the predetermined file includes a metadata portion and a content data portion; in response to a received instruction to delete a predetermined file, the metadata of the predetermined file is deleted and a part of content data among the content data parts of the predetermined file is overwritten. According to the file deleting method and the file deleting equipment, the technical effects that the file can be safely deleted and the speed is compatible can be achieved.

Description

File deletion method and equipment
Technical Field
The present invention relates generally to the field of file management, and more particularly, to a file deletion method and apparatus.
Background
With the development of communication technology, electronic devices are becoming more and more popular. The electronic device may store and use the files, for example, a user may use a screen capture function, a photographing function, or a downloading function of the electronic device to trigger the electronic device to acquire and save the files and use the files.
In general, a file stored by an electronic device generally includes metadata and content data, wherein the metadata may include a size of the file, a modification time, a storage path, and the like, and the content data may include actual data of the file. When a file is deleted, the area storing the file data is not usually processed for the efficiency of deleting the file. The deleting speed of the method is high, however, the deleting operation has great potential safety hazard, when the data of the file is not covered, the data recovery tool can recover the file with great probability, and the potential safety hazard exists.
If data Security is to be ensured, when a file is deleted, a data block (an area for storing data of the file) of the file may be overwritten, for example, the erasing tool of the u.s.department of defense u.s.dod5220.22-M standard, National Industrial Security Program Operating Manual (NISPOM for short), is to overwrite a data block multiple times to confirm data Security. However, the total data block coverage has obvious disadvantages, such as the long time required for deleting a large file and the reduced disk life.
Disclosure of Invention
An exemplary embodiment of the present invention is to provide a file deletion method and apparatus, which can overcome the above disadvantages of the existing file deletion method.
According to an aspect of exemplary embodiments of the present invention, there is provided a file deletion method including: receiving an instruction for deleting a predetermined file, wherein the predetermined file includes a metadata portion and a content data portion; in response to a received instruction to delete a predetermined file, the metadata of the predetermined file is deleted and a part of content data among the content data parts of the predetermined file is overwritten.
Optionally, the step of overwriting a part of the content data among the content data parts of the predetermined file includes: a part of the content data among the content data parts of the predetermined file is overwritten with a default value or a random value.
Optionally, the step of overwriting a part of the content data among the content data parts of the predetermined file includes: determining at least a part of characteristic data to be covered in the content data part of the predetermined file, and covering the determined part of characteristic data.
Optionally, the step of overwriting a part of the content data among the content data parts of the predetermined file includes: determining the file format type of the predetermined file, determining at least one part of characteristic data in the content data according to the determined file format type, and covering the determined at least one part of characteristic data.
Optionally, the step of overwriting a part of the content data among the content data parts of the predetermined file includes: and covering a part of the content data located at a predetermined position among the content data parts of the predetermined file.
Alternatively, the operation of deleting the metadata of the predetermined file and overwriting a part of the content data among the content data parts of the predetermined file is performed in an arbitrary time order.
Optionally, in response to a received instruction for deleting a predetermined file, deleting metadata of the predetermined file and overwriting a part of content data among content data parts of the predetermined file includes: in response to a received instruction to delete a predetermined file, metadata of the predetermined file is immediately deleted and a part of content data among content data parts of the predetermined file is overwritten if a processing resource is free.
Optionally, the step of determining at least a part of the feature data to be covered in the content data portion of the predetermined file includes: determining at least a part of the characteristic data to be overwritten among the content data portions of the predetermined file according to at least one of a file type and a size of the content data portions of the predetermined file.
Optionally, the step of determining the file format type of the predetermined file includes: determining a file format type of the predetermined file based on the magic value and/or the file suffix name of the predetermined file.
Optionally, the at least part of feature data includes feature data with higher importance.
Optionally, the at least part of the feature data comprises at least one of: the file feature code of the predetermined file, the data length code of the file feature code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file.
Optionally, the predetermined location is located at least one of a head and a tail of the predetermined file.
Optionally, the predetermined position is obtained by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
According to another aspect of exemplary embodiments of the present invention, there is provided a file deletion apparatus including: a receiving unit that receives an instruction to delete a predetermined file, wherein the predetermined file includes a metadata portion and a content data portion; and the processing unit is used for responding to the received instruction for deleting the predetermined file, deleting the metadata of the predetermined file and covering a part of content data in the content data part of the predetermined file.
Optionally, the processing unit overwrites a part of the content data among the content data parts of the predetermined file with a default value or a random value.
Optionally, the processing unit determines at least a part of feature data to be covered in the content data portion of the predetermined file, and covers the determined part of feature data.
Optionally, the processing unit determines a file format type of the predetermined file, determines at least a part of feature data in the content data according to the determined file format type, and overwrites the determined at least a part of feature data.
Optionally, the processing unit covers a part of the content data located at a predetermined position among the content data parts of the predetermined file.
Alternatively, the operation of the processing unit deleting the metadata of the predetermined file and overwriting a part of the content data among the content data parts of the predetermined file is performed in an arbitrary time order.
Optionally, the processing unit, in response to a received instruction to delete a predetermined file, immediately deletes metadata of the predetermined file and overwrites a part of content data among content data parts of the predetermined file if processing resources are free.
Optionally, the processing unit determines at least a part of the characteristic data to be covered among the content data part of the predetermined file according to at least one of a file type and a size of the content data part of the predetermined file.
Optionally, the processing unit determines a file format type of the predetermined file based on a magic value and/or a file suffix name of the predetermined file;
optionally, the at least part of feature data includes feature data with higher importance.
Optionally, the at least part of the feature data comprises at least one of: the file feature code of the predetermined file, the data length code of the file feature code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file.
Optionally, the predetermined location is located at least one of a head and a tail of the predetermined file.
Optionally, the processing unit obtains the predetermined position by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
According to another aspect of exemplary embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements a file deletion method according to the present invention.
According to another aspect of exemplary embodiments of the present invention, there is provided an electronic apparatus, wherein the electronic apparatus includes: a processor; a memory storing a computer program which, when executed by the processor, implements a file deletion method according to the present invention.
According to the file deleting method and the file deleting equipment, the technical effects that the file can be safely deleted and the speed is compatible can be achieved.
Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
Drawings
The above and other objects of exemplary embodiments of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings which illustrate exemplary embodiments, wherein:
FIG. 1 illustrates a flowchart of a file deletion method according to an exemplary embodiment of the present invention;
FIG. 2 illustrates an example of a file deletion method according to an exemplary embodiment of the present invention;
fig. 3 illustrates a block diagram of a file deletion apparatus according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
Fig. 1 illustrates a flowchart of a file deletion method according to an exemplary embodiment of the present invention. Here, as an example, the file deletion method may be applied to an electronic device, wherein the electronic device may be an electronic device having a file management function, such as a smartphone, a tablet computer, a personal computer, and a multimedia player.
As shown in fig. 1, in step S100, an instruction for deleting a predetermined file including a metadata portion and a content data portion is received.
By way of example, the metadata may include, but is not limited to, the size of the file, modification time, storage path, and the like.
In step S200, in response to a received instruction for deleting a predetermined file, metadata of the predetermined file is deleted and a part of content data among content data parts of the predetermined file is overwritten.
Here, the instruction to delete the metadata and the content data covering a part of the content data among the content data parts of the predetermined file are within one handle operation.
As an example, the metadata of the predetermined file may be immediately deleted in response to a received instruction to delete the predetermined file, and a part of the content data among the content data parts of the predetermined file may be overwritten if the processing resources are free.
In another example, the operation of deleting the metadata of the predetermined file and overwriting a part of the content data among the content data parts of the predetermined file may be performed in an arbitrary time order.
For example, the metadata may be deleted first and then a part of the content data among the content data portions of the predetermined file may be overwritten, or the metadata may be overwritten first and then a part of the content data among the content data portions of the predetermined file may be deleted, or the deletion of the metadata and the overwriting of a part of the content data among the content data portions of the predetermined file may be performed simultaneously.
Further, regarding the step of overwriting a part of content data among the content data portions of the predetermined file, in one example, a part of content data among the content data portions of the predetermined file may be overwritten with a default value or a random value.
By overwriting a part of content data in the content data portion of the predetermined file with the default value and/or the random value, it is helpful to increase the difficulty of restoring the predetermined file after overwriting, thereby further preventing the predetermined file from being restored.
In another example, at least a part of the characteristic data to be covered among the content data portions of the predetermined file may be determined, and the determined part of the characteristic data may be covered.
For example, at least a part of the characteristic data to be covered among the content data parts of the predetermined file is determined according to at least one of a file type and a size of the content data parts of the predetermined file, and the determined part of the characteristic data is further covered.
In practice, most of the characteristic information of the file is concentrated on the beginning portion (i.e., the head portion) and the ending portion (i.e., the end portion) of the file, and thus at least one of the head portion and the end portion of the predetermined file can be determined using at least one of the file type and the size of the content data portion of the predetermined file, thereby determining the at least one portion characteristic data at least one of the head portion and the end portion of the predetermined file.
In an exemplary embodiment of the present invention, the at least a part of the feature data may include feature data of higher importance. For example, the at least a portion of the feature data may include at least one of: the file feature code of the predetermined file, the data length code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file.
Here, the file feature code of the predetermined file may be a Tag code (Tag) of the predetermined file, for example, in general, the Tag code is composed of two bytes, wherein the former byte is a fixed value of 0xFF, and the latter byte has a different value according to different meanings. Before each mark code also an unlimited number of meaningless 0xFF pads can be added, i.e. consecutive 0 xffs can be understood as a 0xFF and represent the beginning of a mark code, while after a complete two-byte mark code, i.e. the corresponding compressed data stream of the mark code, information about said predetermined file is recorded.
Common mark codes are SOI (Start of Image): 0xFFD8, APP0(Application-0, Application retention marker 0): 0xFFE0, APPN (Application-n, Application retention marker n): 0 xffan, DQT (Define Quantization Table): 0xFFDB, SOF0(Start of Frame ): 0xFFC0, DHT (Define Huffman Table ): 0xFFC4, SOS (Start of Scan): 0xFFDA, and the like.
For example, the order of a JPEG file (·.jpg) in the general JFIF format is: SOI, APP0, APPn, DQT, SOF0, DHT, and SOS.
Further, the data length code of the file feature code of the predetermined file may be a data length code of a mark code.
For example, the data length code of each mark code of the JPEG file is: APP0 marker 0xFFE0, data length code 0x0010, DQT marker 0xFFDB, data length code 0x0043, SOF0 marker 0xFFC0, data length code 0x0011, DHT marker 0xFFC4, data length code 0x00B5, DHT marker 0xFFC4, data length code 0x001F, DHT marker 0xFFC4, data length code 0x00B5, SOS marker 0xFFDA, data length code 0x 000C.
Fig. 2 illustrates an example of a file deletion method according to an exemplary embodiment of the present invention.
Assuming that the predetermined file is a JPEG file in JFIF format, fig. 2 shows a content data portion of the JPEG file, assuming that the flag code and the data length code are the same as those described above, and assuming that the part of the feature data determined to be overlaid is the data length code overlaying the file feature code and the file feature code of the predetermined file. As shown in fig. 2, the file feature code of the content data portion and the data length code of the file feature code may be found, and the found file feature code and file feature length are the contents within the frame in fig. 2, such as "FF D8", "FF E00010", "FF DB 0043", "FF C00011", "FF C400B 5", "FF C4001F", "FF C400B 5", "FF DA 000C", and "FF D9". And then, covering the searched file feature codes and the data length codes of the file feature codes.
Further, in addition to the file feature code and the data length code of the file feature code may be covered, the file identifier code of the predetermined file or the file version code of the predetermined file may be covered, for example, when the predetermined file is a JPEG file in JFIF format, the file identifier code is 0x4a46494600, that is, the string "JFIF 0", and the file version code is 0x0101, representing a version number of 1.1.
For example, in the example of FIG. 2, the file identifier codes "4A 46494600" and "0101" may be overwritten.
In the actual processing process, the lower segment marker code and the data length code can be directly processed by analyzing the upper segment marker code and the data length code, and meanwhile, the coverage content is very little, and the processing efficiency is high.
In another example, the step of overwriting a part of content data among the content data parts of the predetermined file may be implemented by:
first, a file format type of the predetermined file may be determined.
As an example, the file format type of the predetermined file may be determined based on a magic value and/or a file suffix name of the predetermined file. Table 1 below shows the correspondence between the common file format and the magic value, and the file format type of the predetermined file can be determined directly according to the correspondence between the magic value and the file format of the file, for example, when the magic value of the predetermined file is "0 xFFD8 FF", the file format of the predetermined file can be determined to be "JPEG" by looking up table 1:
TABLE 1
Figure BDA0002703762680000071
Figure BDA0002703762680000081
Then, at least a part of the characteristic data among the content data is determined according to the determined file format type.
Finally, the determined at least part of the feature data is covered.
In another example, a part of the content data located at a predetermined position among the content data parts of the predetermined file is overwritten.
As an example, the predetermined position is located at least one of a head and a tail of the predetermined file.
As an example, the predetermined position is obtained by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
According to the file deleting method provided by the exemplary embodiment of the invention, the technical effects that the file can be safely deleted and the speed is compatible can be achieved.
Fig. 3 illustrates a block diagram of a file deletion apparatus according to an exemplary embodiment of the present invention.
As shown in fig. 3, the file deletion apparatus according to an exemplary embodiment of the present invention includes a receiving unit 100 and a processing unit 200.
The receiving unit 100 receives an instruction to delete a predetermined file including a metadata portion and a content data portion. By way of example, the metadata may include, but is not limited to, the size of the file, modification time, storage path, and the like.
The processing unit 200 deletes the metadata of the predetermined file and overwrites a part of the content data among the content data parts of the predetermined file in response to the received instruction for deleting the predetermined file.
Here, the instruction to delete the metadata and the content data covering a part of the content data among the content data parts of the predetermined file are within one handle operation.
As an example, the processing unit 200 immediately deletes the metadata of the predetermined file in response to the received instruction for deleting the predetermined file, and overwrites a part of the content data among the content data parts of the predetermined file if the processing resources are free.
In another example, the operation of the processing unit 200 to delete the metadata of the predetermined file and to overwrite a part of the content data among the content data parts of the predetermined file is performed in an arbitrary time order.
For example, the metadata may be deleted first and then a part of the content data among the content data portions of the predetermined file may be overwritten, or the metadata may be overwritten first and then a part of the content data among the content data portions of the predetermined file may be deleted, or the deletion of the metadata and the overwriting of a part of the content data among the content data portions of the predetermined file may be performed simultaneously.
Further, the processing unit 200 overwrites a part of the content data among the content data parts of the predetermined file with a default value or a random value.
By overwriting a part of content data in the content data portion of the predetermined file with the default value and/or the random value, it is helpful to increase the difficulty of restoring the predetermined file after overwriting, thereby further preventing the predetermined file from being restored.
In another example, the processing unit 200 determines at least a part of the feature data to be overwritten among the content data portion of the predetermined file, and overwrites the determined part of the feature data.
For example, the processing unit 200 determines at least a part of the characteristic data to be overwritten among the content data parts of the predetermined file according to at least one of the file type and the size of the content data parts of the predetermined file, and further overwrites the determined part of the characteristic data.
In practice, most of the characteristic information of the files is concentrated on the beginning part (i.e., the head part) and the ending part (i.e., the tail part) of the file, and thus the processing unit 200 may determine at least one of the head part and the tail part of the predetermined file using at least one of the file type and the size of the content data part of the predetermined file, thereby determining the at least one part characteristic data at least one of the head part and the tail part of the predetermined file.
In an exemplary embodiment of the present invention, the at least a part of the feature data may include feature data of higher importance. For example, the at least a portion of the feature data may include at least one of: the file feature code of the predetermined file, the data length code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file.
In another example, the processing unit 200 may first determine a file format type of the predetermined file.
As an example, the processing unit 200 may determine a file format type of the predetermined file based on a magic value and/or a file suffix name of the predetermined file.
Then, the processing unit 200 determines at least a part of the characteristic data among the content data according to the determined file format type.
Finally, the processing unit 200 overlays the determined at least part of the feature data.
In another example, the processing unit 200 overlays a part of the content data located at a predetermined position among the content data parts of the predetermined file.
As an example, the predetermined position is located at least one of a head and a tail of the predetermined file.
As an example, the processing unit 200 acquires the predetermined position by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
Further, it should be understood that the respective units in the file deletion apparatus according to the exemplary embodiment of the present invention may be implemented as hardware components and/or software components. The individual units may be implemented, for example, using Field Programmable Gate Arrays (FPGAs) or Application Specific Integrated Circuits (ASICs), depending on the processing performed by the individual units as defined by the skilled person.
The computer-readable storage medium according to an exemplary embodiment of the present invention stores a computer program that, when executed by a processor, causes the processor to perform the file deletion method of the above-described exemplary embodiment. The computer readable storage medium is any data storage device that can store data which can be read by a computer system. Examples of computer-readable storage media include: read-only memory, random access memory, read-only optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the internet via wired or wireless transmission paths).
An electronic device according to an exemplary embodiment of the present invention includes: a processor (not shown) and a memory (not shown), wherein the memory stores a computer program which, when executed by the processor, implements the file deletion method as in the above exemplary embodiments.
In summary, in the file deletion method and apparatus according to the exemplary embodiments of the present invention, technical effects can be achieved that a file can be safely deleted and speed is compatible.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

Claims (8)

1. A file deletion method, comprising:
receiving an instruction for deleting a predetermined file, wherein the predetermined file includes a metadata portion and a content data portion;
in response to a received instruction to delete a predetermined file, the metadata of the predetermined file is deleted and a part of content data among the content data parts of the predetermined file is overwritten.
2. The file deletion method according to claim 1, wherein the step of overwriting a part of content data among the content data parts of the predetermined file comprises: overwriting a part of content data among the content data parts of the predetermined file with a default value or a random value;
and/or the presence of a gas in the gas,
the step of overwriting a part of the content data among the content data parts of the predetermined file includes: determining at least one part of feature data to be covered in the content data part of the predetermined file, and covering the determined part of feature data;
and/or the presence of a gas in the gas,
the step of overwriting a part of the content data among the content data parts of the predetermined file includes:
determining a file format type of the predetermined file,
determining at least a part of the characteristic data among the content data according to the determined file format type,
overlaying the determined at least a portion of the feature data;
and/or the presence of a gas in the gas,
the step of overwriting a part of the content data among the content data parts of the predetermined file includes: covering a part of content data located at a predetermined position among the content data parts of the predetermined file; and/or the presence of a gas in the gas,
an operation of deleting metadata of the predetermined file and overwriting a part of content data among the content data parts of the predetermined file is performed in an arbitrary time order;
and/or the presence of a gas in the gas,
in response to a received instruction to delete a predetermined file, deleting metadata of the predetermined file and overwriting a part of content data among content data parts of the predetermined file includes: in response to a received instruction to delete a predetermined file, metadata of the predetermined file is immediately deleted and a part of content data among content data parts of the predetermined file is overwritten if a processing resource is free.
3. The file deletion method according to claim 2, wherein the step of determining at least a part of the characteristic data to be overwritten among the content data portions of the predetermined file comprises: determining at least a part of characteristic data to be covered in the content data part of the predetermined file according to at least one of the file type and the size of the content data part of the predetermined file;
and/or the presence of a gas in the gas,
the step of determining the file format type of the predetermined file comprises:
determining a file format type of the predetermined file based on a magic value and/or a file suffix name of the predetermined file;
and/or the presence of a gas in the gas,
the at least a portion of the feature data includes feature data of higher importance,
and/or the presence of a gas in the gas,
the at least a portion of the feature data comprises at least one of: the file feature code of the predetermined file, the data length code of the file feature code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file;
and/or the presence of a gas in the gas,
the predetermined position is located at least one of a head and a tail of the predetermined file;
and/or the presence of a gas in the gas,
the predetermined position is obtained by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
4. A file deletion apparatus comprising:
a receiving unit that receives an instruction to delete a predetermined file, wherein the predetermined file includes a metadata portion and a content data portion;
and the processing unit is used for responding to the received instruction for deleting the predetermined file, deleting the metadata of the predetermined file and covering a part of content data in the content data part of the predetermined file.
5. The file deletion apparatus according to claim 4, wherein the processing unit overwrites a part of content data among the content data parts of the predetermined file with a default value or a random value;
and/or the presence of a gas in the gas,
the processing unit determines at least one part of feature data to be covered in the content data part of the predetermined file and covers the determined part of feature data;
and/or the presence of a gas in the gas,
the processing unit determines the file format type of the preset file, determines at least one part of characteristic data in the content data according to the determined file format type, and covers the determined at least one part of characteristic data;
and/or the presence of a gas in the gas,
the processing unit covers a part of content data located at a predetermined position among the content data parts of the predetermined file;
and/or the presence of a gas in the gas,
the processing unit deletes the metadata of the predetermined file and the operation of overwriting a part of the content data among the content data parts of the predetermined file in an arbitrary time order;
and/or the presence of a gas in the gas,
the processing unit immediately deletes metadata of a predetermined file in response to a received instruction for deleting the predetermined file, and overwrites a part of content data among content data parts of the predetermined file if a processing resource is free.
6. The file deletion apparatus according to claim 5, wherein the processing unit determines at least a part of the characteristic data to be overwritten among the content data portions of the predetermined file, based on at least one of a file type and a size of the content data portions of the predetermined file;
and/or the presence of a gas in the gas,
the processing unit determines the file format type of the predetermined file based on the magic value and/or the file suffix name of the predetermined file;
and/or the presence of a gas in the gas,
the at least a portion of the feature data includes feature data of higher importance,
and/or the presence of a gas in the gas,
the at least a portion of the feature data comprises at least one of: the file feature code of the predetermined file, the data length code of the file feature code of the predetermined file, the file identifier code of the predetermined file, and the file version code of the predetermined file;
and/or the presence of a gas in the gas,
the predetermined position is located at least one of a head and a tail of the predetermined file;
and/or the presence of a gas in the gas,
the processing unit acquires the predetermined position by: and determining a position where the feature data are more distributed as the predetermined position based on a position collection of the feature data of the plurality of files.
7. A computer-readable storage medium storing a computer program which, when executed by a processor, implements the file deletion method of any one of claims 1 to 3.
8. An electronic device, wherein the electronic device comprises:
a processor;
a memory storing a computer program which, when executed by the processor, implements the file deletion method of any one of claims 1 to 3.
CN202011031251.8A 2020-09-27 2020-09-27 File deletion method and equipment Pending CN112181911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011031251.8A CN112181911A (en) 2020-09-27 2020-09-27 File deletion method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011031251.8A CN112181911A (en) 2020-09-27 2020-09-27 File deletion method and equipment

Publications (1)

Publication Number Publication Date
CN112181911A true CN112181911A (en) 2021-01-05

Family

ID=73944190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011031251.8A Pending CN112181911A (en) 2020-09-27 2020-09-27 File deletion method and equipment

Country Status (1)

Country Link
CN (1) CN112181911A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306175A1 (en) * 2009-01-28 2010-12-02 Digitiliti, Inc. File policy enforcement
CN105912698A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Deletion method and system of data file in disk
CN107203643A (en) * 2017-06-20 2017-09-26 郑州云海信息技术有限公司 A kind of method and system for deleting file
CN109976668A (en) * 2019-03-14 2019-07-05 北京达佳互联信息技术有限公司 Data-erasure method, data deletion apparatus and computer readable storage medium
CN111382126A (en) * 2018-12-28 2020-07-07 卡巴斯基实验室股份制公司 System and method for deleting files and hindering file recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306175A1 (en) * 2009-01-28 2010-12-02 Digitiliti, Inc. File policy enforcement
CN105912698A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Deletion method and system of data file in disk
CN107203643A (en) * 2017-06-20 2017-09-26 郑州云海信息技术有限公司 A kind of method and system for deleting file
CN111382126A (en) * 2018-12-28 2020-07-07 卡巴斯基实验室股份制公司 System and method for deleting files and hindering file recovery
CN109976668A (en) * 2019-03-14 2019-07-05 北京达佳互联信息技术有限公司 Data-erasure method, data deletion apparatus and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
帝江VII: "C++修改/覆盖指定位置的文件内容或者从某个位置开始截断文件", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/qq_31175231/article/details/81985263> *

Similar Documents

Publication Publication Date Title
US7287222B2 (en) Information processing apparatus and method that determines effectiveness of metadata for editing information content
JP6144748B2 (en) File safe deletion function providing apparatus, method thereof, computer-readable recording medium on which program for executing the method is recorded, and application distribution system
US7191391B2 (en) Form processing device, and form processing method and program
US7386576B2 (en) Data file storage device with automatic filename creation function, data file storage program and data file storage method
US20020161980A1 (en) Storage service method, storage service user terminal device, storage service providing device, and storage medium storing storage service program
US7400349B2 (en) Electronic camera and image processing method
TW200814721A (en) A data storage management method and device
JP2007316229A (en) Image display device having image cache memory
JP3623983B2 (en) Image file recording / reproducing apparatus and method
CN101763397A (en) Device and method for processing expanding information in image file
JP3919237B2 (en) Image recording / reproducing apparatus, image reproducing apparatus, and method thereof
JP4568954B2 (en) Data file management recording medium, data file management apparatus, image data transmission method, and data transmission method
JP2006148912A (en) Recording method of video data and its recording device
CN112181911A (en) File deletion method and equipment
CN108563396B (en) Safe cloud object storage method
JP2002116946A (en) Multimedia data storage method, device and storage medium
CN108228767B (en) Method and device for directionally deleting files by smart phone and storage device
JP5089353B2 (en) Program, file management apparatus and file management method
JP3889577B2 (en) Image recording device
KR101990689B1 (en) Apparatus for providing image data and method thereof
KR102644076B1 (en) Apparatus and method for recovering deleted chat messages based on fts index data
JP4420747B2 (en) File creation device and file structure
JP4893843B2 (en) Data file management device and computer-readable recording medium for data file management
JP5173204B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP7238274B2 (en) Information processing device, information processing method and program

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