CN113722279A - Method, device and equipment for determining size of folder and storage medium - Google Patents

Method, device and equipment for determining size of folder and storage medium Download PDF

Info

Publication number
CN113722279A
CN113722279A CN202110955158.4A CN202110955158A CN113722279A CN 113722279 A CN113722279 A CN 113722279A CN 202110955158 A CN202110955158 A CN 202110955158A CN 113722279 A CN113722279 A CN 113722279A
Authority
CN
China
Prior art keywords
folder
size
subfolder
fixed
root directory
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.)
Granted
Application number
CN202110955158.4A
Other languages
Chinese (zh)
Other versions
CN113722279B (en
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110955158.4A priority Critical patent/CN113722279B/en
Publication of CN113722279A publication Critical patent/CN113722279A/en
Application granted granted Critical
Publication of CN113722279B publication Critical patent/CN113722279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • 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/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a method, a device, equipment and a storage medium for determining the size of a folder, and relates to the field of data processing. The method comprises the following steps: acquiring an index file, wherein the index file comprises a relative path of each fixed folder in at least one fixed folder and the size of each fixed folder; reading the index file and determining the size of each fixed folder; scanning and determining the size of a subfolder except at least one fixed folder in the root directory folder; the size of the root directory folder is determined based on the size of each of the fixed folders and the size of at least one of the subfolders other than the fixed folder. Based on the method, the electronic equipment can determine the size of the folder with the fixed size without scanning, so that the time required by the electronic equipment to scan the subfolders is greatly reduced, and the efficiency of the electronic equipment to scan the root directory folder is improved.

Description

Method, device and equipment for determining size of folder and storage medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for determining a folder size.
Background
In the related art, in order to determine the storage space occupied by the application program, the electronic device needs to scan the sizes of the storage spaces occupied by all the subfolders in the root directory of the application program one by one (in this disclosure, the size of the storage space occupied by the subfolders is also referred to as the size of the folder), and add up the sizes of the subfolders to determine the size of the storage space occupied by the application program.
However, due to continuous iteration of the application program, the storage space occupied by the application program is larger and larger, the time required by the electronic device to scan the size of the root directory folder of the application program is longer and longer, and the power consumption generated by the electronic device in the scanning process is higher and higher.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device, and a storage medium for determining a size of a folder, so as to at least solve the problems in the related art that the time required for an electronic device to scan the size of a root directory folder of an application program is longer and longer, and the power consumption generated by the electronic device in the scanning process is higher and higher. The technical scheme of the disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of determining a folder size, including:
acquiring an index file, wherein the index file comprises a relative path of each fixed folder in at least one fixed folder and the size of each fixed folder; the fixed folder is a subfolder with a fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder;
reading the index file and determining the size of each fixed folder;
recursively scanning the size of subfolders other than the at least one fixed folder in the root directory folder;
and determining the size of the root directory folder according to the size of each fixed folder and the sizes of subfolders except the at least one fixed folder.
Optionally, the determining the size of the root directory folder according to the size of each fixed folder and the size of the subfolders other than the at least one fixed folder includes:
reading the index file, and determining the relative path of each fixed folder;
acquiring a relative path of the first subfolder; the first subfolder is any subfolder in the root directory folder;
determining whether a second subfolder exists in the index file; the second subfolder is a fixed folder with the same relative path as the first subfolder;
if so, determining the size of the second subfolder as the size of the first folder;
if not, scanning to determine the size of the first subfolder;
accumulating the size of each first subfolder in the root directory folder, and determining the size of the root directory folder.
Optionally, before the obtaining the index file, the method further includes:
acquiring subfolders under the root directory folder;
when the subfolders are fixed-size folders, adding first identifications for the subfolders; the first identification is used for identifying the subfolder as the fixed folder.
Optionally, after the scanning determines the size of the first subfolder, the method further includes:
updating the index file when the first subfolder includes a first identifier; the updated index file is further configured to indicate a relative path of the first subfolder relative to the root directory folder, and a size of the first subfolder.
Optionally, the index file is a file stored in a hard disk; or, the index file is a file written into the memory.
Optionally, before obtaining the index file, the method further includes:
scanning the root directory folder;
when the index file is not included in the root directory folder, the index file is created.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for determining a folder size, including: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring an index file, wherein the index file comprises a relative path of each fixed folder in at least one fixed folder and the size of each fixed folder; the fixed folder is a subfolder with a fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder;
the processing module is used for reading the index file and determining the size of each fixed folder;
the processing module is further configured to recursively scan the sizes of subfolders other than the at least one fixed folder in the root directory folder;
the processing module is further configured to determine the size of the root directory folder according to the size of each fixed folder and the sizes of subfolders other than the at least one fixed folder.
Optionally, the processing module is specifically configured to:
reading the index file, and determining the relative path of each fixed folder;
instructing the obtaining module to obtain a relative path of a first subfolder; the first subfolder is any subfolder in the root directory folder;
determining whether a second subfolder exists in the index file; the second subfolder is a fixed folder with the same relative path as the first subfolder;
if so, determining the size of the second subfolder as the size of the first folder;
if not, scanning to determine the size of the first subfolder;
accumulating the size of each first subfolder in the root directory folder, and determining the size of the root directory folder.
Optionally, the obtaining module is further configured to obtain a subfolder under the root directory folder;
the processing module is further configured to add a first identifier to the subfolder when the subfolder is a fixed-size folder; the first identification is used for identifying the subfolder as the fixed folder.
Optionally, the processing module is further configured to:
updating the index file when the first subfolder includes a first identifier; the updated index file is further configured to indicate a relative path of the first subfolder relative to the root directory folder, and a size of the first subfolder.
Optionally, the index file is a file stored in a hard disk; or, the index file is a file written into the memory.
Optionally, the processing module is further configured to:
scanning the root directory folder;
when the index file is not included in the root directory folder, the index file is created.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of the first aspect and the first aspect optionally determining a folder size.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, which, when executed by a processor of an electronic device, enable the electronic device to perform the method of optionally determining a folder size as in any of the first and second aspects above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the computer program product comprising computer instructions that, when run on an electronic device, cause the electronic device to perform the method of any of the first aspect and the first aspect optionally determining a folder size.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: when the electronic equipment needs to determine the size of the root directory folder, the electronic equipment first determines the size of the fixed folder according to the index file, and then determines the sizes of the folders except the fixed folder by scanning the sizes of the folders. Due to the relative path of the fixed folder in the index file, and the size of the fixed folder. Therefore, when the subfolders are fixed-size folders, the electronic equipment can directly determine the sizes of the subfolders according to the relative paths of the subfolders. Compare in the mode that scans subfolder and confirm the size of subfolder, confirm the size of the folder that the subfolder instructed can directly be confirmed to the relative route of only simple comparison according to the index file according to the subfolder size of index file, greatly reduced electronic equipment scan the required time of subfolder, and then improved the efficiency that electronic equipment scanned root directory folder.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method of determining a folder size in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating another method of determining a folder size in accordance with an example embodiment.
FIG. 3 is a flow diagram illustrating yet another method of determining folder sizes in accordance with an exemplary embodiment.
FIG. 4 is a flow diagram illustrating yet another method of determining a folder size in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus for determining a folder size in accordance with an example embodiment.
Fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before describing the method for determining the folder size in the embodiment of the present disclosure in detail, the terms related to the embodiment of the present disclosure are explained first, and an application scenario and an implementation environment of the embodiment of the present disclosure are described.
First, terms related to the embodiments of the present disclosure are explained.
1. Size of the folder
In the embodiments of the present disclosure, the size of a folder refers to the size of a storage space occupied by the folder. In the present disclosure, the description will be given mainly taking an installation folder of an application program as an example.
2. Fixed file
In the embodiment of the present disclosure, a fixed folder refers to a folder with a fixed folder size, and generally refers to a folder in which the amount of data in the folder is fixed and data is not added, modified, or deleted.
3. Root directory folder
In the disclosed embodiment, the root directory folder refers to a folder to be scanned. Optionally, when the electronic device needs to scan the size of the storage space occupied by the application program, the root directory folder is an installation folder of the application program.
Taking an electronic device as a mobile phone, taking the name of an application program to be scanned as an application program a as an example, an absolute path of a root directory folder in the embodiment of the present disclosure is "mobile phone/internal storage device/application program a". The root directory folder is "application a".
4. Absolute and relative paths of folders
An absolute path of a folder refers to the actual path that the folder stores on the hard disk. For example, the absolute path of folder B under System stored under the windows folder of the C disk on the computer is: c, windows/System/folder B.
The relative path of a folder refers to the path of the folder relative to a certain target folder. As in the above example, the path of folder B with respect to the windows folder is: system/folder B. In the present disclosure, a subfolder relative path refers to a relative path of a subfolder relative to a root directory folder.
Next, an application scenario of the embodiment of the present disclosure is described.
The method for determining the size of the folder in the embodiment of the disclosure is applied to a scene of determining the size of the folder by scanning the folder. Specifically, the electronic device includes a storage device for storing files, and the files are stored in the storage device in the form of folders. When the electronic device needs to determine the size of the root directory folder, the electronic device needs to determine the sizes of all the subfolders under the root directory folder one by one (for example, using a recursive scanning manner), and then accumulate the sizes of all the subfolders under the root directory folder to determine the size of the root directory folder.
However, in the related art, when the electronic device scans the size of the folder, it is necessary to scan the sizes of all subfolders under the folder one by one and accumulate the sizes of the subfolders to determine the final size of the folder. When the electronic device (such as a mobile phone) scans the size of the storage space occupied by the application program, the memory space occupied by the installation folder of the application program is larger and larger due to the continuous iterative update of the application program. The time of the electronic device for scanning the size of the storage space occupied by the application program is longer and longer, the CPU resource occupied in the process is higher and higher, and the power consumption generated in the process is higher and higher, so that a method is urgently needed at present, and the efficiency of the electronic device for scanning the size of the folder can be improved.
In order to improve the efficiency of scanning folders by the electronic device, the embodiment of the present disclosure provides a method for scanning the sizes of folders, where the electronic device writes in advance the relative path of a folder with a fixed size in a folder with respect to a root directory to which the folder belongs, and the specific size of the folder into an index file. When the electronic equipment needs to scan the size of the root directory folder, the electronic equipment reads the index file to determine the size of the folder with the fixed size, and then determines the size of the folder with the non-fixed size in the root directory folder in a scanning mode. The electronic equipment accumulates the sizes of all folders under the root directory folder and determines the size of the root directory folder.
The following provides an exemplary description of a method for determining a folder size according to an embodiment of the present disclosure:
the method for determining the size of the folder provided by the disclosure can be applied to electronic equipment.
In some embodiments, the electronic device may be a terminal, or may be other electronic devices for determining the folder size, which is not limited by the present disclosure.
The terminal may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) Virtual Reality (VR) device, and other devices that can be installed and use a content community application (e.g., a fast hand), and the specific form of the electronic device is not particularly limited by the present disclosure. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
The method for determining the size of the folder provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for determining a size of a folder according to an exemplary embodiment, where the method for determining a size of a folder is used in a scenario of determining a size of a folder, as shown in fig. 1, including the following S100-S103.
S100, the electronic equipment acquires the index file.
The index file comprises a relative path of each fixed file folder in at least one fixed file folder and the size of each fixed file folder; the fixed folder is a subfolder with a fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder.
Optionally, in this embodiment of the present disclosure, the index file may be a file in a specific format stored in the storage space, or the index file may also be an index file written in a memory of the electronic device.
Dat may be identified as index, when the index file is a file of a particular format stored in the storage space, for example. In this case, when the electronic device acquires the index file, the relative path of the fixed folder indicated by the index file can be determined by loading the index.dat file in the hard disk into the memory; and the size of each fixed folder. At this time, the index file may be stored in the root directory folder to be scanned.
When the index file is written in the memory of the electronic equipment, the electronic equipment can determine the relative path of the fixed folder indicated by the index file by directly loading the index file in the memory; and the size of each fixed folder. At this time, the index file may be written in the memory of the electronic device in the form of program code.
For an example, the format of the index file may refer to the following table 1:
TABLE 1
Subfolder relative path Size of subfolder
.emoji/resource 2343
.magic_emoji/resource/128 12430
filter_resource/12 1048
S101, the electronic equipment reads the index file and determines the size of each fixed folder.
Optionally, the folder is determined for a child folder below the root directory folder corresponding to the fixed folder stored in the index file. The electronic device reads the index file to determine the relative path of each fixed folder. After the electronic device obtains each subfolder under the root directory folder, the relative path of the subfolder is determined. The electronic device matches whether the relative path of the subfolder is the same as the relative path of the anchor folder stored in the index file. If the subfolders are the same, the electronic equipment determines that the subfolders are subfolders with fixed sizes, and the subfolders are the same as the fixed folders with the same relative paths.
S102, the electronic equipment recursively scans the sizes of the subfolders except at least one fixed folder in the root directory folder.
Optionally, after S101, the electronic device determines the size of at least one fixed folder in the root directory folder. For subfolders other than at least one fixed folder, the sizes of the subfolders are unknown or are not fixed. Therefore, the electronic device determines the size of the subfolders other than the at least one fixed folder by means of recursive scanning.
S103, the electronic equipment determines the size of the root directory folder according to the size of each fixed folder and the size of the subfolders except for at least one fixed folder.
Optionally, the electronic device accumulates the size of each fixed folder and the size of at least one sub-folder other than the fixed folder, and uses the accumulated result as the size of the root directory folder.
Optionally, the electronic device recursively scans the root directory folder, and obtains the relative path of the first-level subfolder, and the relative path of the second-level subfolder until the relative path of the last-level subfolder. The electronic device first determines whether a fixed folder (i.e., a folder having the same relative path as the index directory) exists in the primary subfolder, and if so, marks the size of the primary subfolder. The electronic device skips the one-level subfolder that is the pinned folder and continues to recursively scan the other one-level subfolders.
And then the electronic equipment determines secondary subfolders under the other primary subfolders, determines whether a fixed folder exists in the primary subfolders, and marks the size of the secondary subfolders if the fixed folder exists in the primary subfolders. The electronic device skips the secondary subfolder and continues to recursively scan the other secondary subfolders.
According to the mode, the electronic equipment successively and recursively scans each level of subfolders until all fixed folders below the root directory folder are marked, and scans and determines the size of the last level of subfolders in the non-fixed folders. The electronic device determines the size of the root directory folder in a recursive computing manner.
The technical scheme provided by the embodiment at least has the following beneficial effects: when the electronic equipment needs to determine the size of the root directory folder, the electronic equipment first determines the size of the fixed folder according to the index file, and then determines the sizes of the folders except the fixed folder by scanning the sizes of the folders. Due to the relative path of the fixed folder in the index file, and the size of the fixed folder. Therefore, when the subfolders are fixed-size folders, the electronic equipment can directly determine the sizes of the subfolders according to the relative paths of the subfolders. Compare in the mode that scans subfolder and confirm the size of subfolder, confirm the size of the folder that the subfolder instructed can directly be confirmed to the relative route of only simple comparison according to the index file according to the subfolder size of index file, greatly reduced electronic equipment scan the required time of subfolder, and then improved the efficiency that electronic equipment scanned root directory folder.
In one possible implementation, the electronic device may match the relative paths in the index file by traversing the relative paths of the subfolders under the root directory folder. The electronic equipment determines that the subfolders successfully matched with the relative paths are subfolders with fixed sizes under the root directory folder, and determines the sizes of the subfolders through the index file. For other subfolders below the root directory folder, the electronic device determines the size of these subfolders by scanning.
Optionally, with reference to fig. 1, as shown in fig. 2, the above S103 may be specifically implemented by the following S200-S206. The following is specifically described:
s200, the electronic equipment acquires the index file and determines the relative path of each fixed folder.
Alternatively, the index file acquired by the electronic device may be an index file as shown in table 1 above. In this case, the relative path of the fixed folder determined by the electronic device includes: emoji/resource,. magic _ emoji/resource/128, filter _ resource/12.
S201, the electronic device recursively scans the root directory folder to obtain a relative path of each first subfolder.
The first subfolder is any subfolder in all levels of subfolders in the root directory folder.
S202, the electronic equipment determines whether a relative path identical to that of the first subfolder exists in the index file.
Optionally, after acquiring the relative path of the first subfolder, the electronic device performs matching respectively according to the relative path of the first subfolder and the relative path stored in the index file until the relative path that is the same as the relative path of the first subfolder is matched from the index file, or the relative paths in the index file are completely matched.
If the electronic device matches a relative path from the index file that is the same as the relative path of the first subfolder, the electronic device determines that a relative path exists in the index file that is the same as the relative path of the first subfolder.
If the electronic device determines that the relative paths in the index file are completely matched and do not match the relative paths identical to the relative paths of the first subfolder, the electronic device index file does not have the relative paths identical to the relative paths of the first subfolder.
It should be noted that whether the relative path in the index file is the same as the relative path in the first subfolder affects the subsequent steps performed by the electronic device. The following description will be made in cases:
in case 1, the electronic device determines that a relative path exists in the index file that is the same as the relative path of the first subfolder.
In this case, the electronic device determines the size of the first subfolder according to S203 below.
S203, the electronic device determines that the first subfolder is a fixed folder, and determines the size of the fixed folder corresponding to the relative path which is the same as the relative path of the first subfolder as the size of the first subfolder.
Specifically, the electronic device has determined in S202 described above that the same relative path exists in the index file as the relative path of the first subfolder. Based on this, the electronic device may determine that the fixed folder corresponding to the same relative path as the relative path of the first subfolder is the first folder. The electronic device determines that the size of the fixed folder is the size of the first subfolder.
Optionally, in the case that the index file is stored in a table form, after determining the relative path of the first sub-folder, the electronic device matches the relative path of the first sub-folder with the relative path in the table of the index file one by one. And if the same path is matched, determining that the first subfolder is a folder with a fixed size. At this time, the electronic device does not scan the size of the first subfolder, and directly determines the value corresponding to the relative path in the table as the size of the first subfolder.
For example, the electronic device determines that the first subfolder relative path is: emoji/resource. And the electronic equipment matches the relative path stored in the index file according to the relative path of the first folder, and determines that a subfolder relative path matched with the relative path exists in the index file. At this time, the subfolder size 2343 corresponding to the subfolder relative path ". emoji/resource" in the index file is directly used as the size of the subfolder.
Case 2, the electronic device determines that there is no relative way in the index file that is the same as the relative path of the first subfolder.
In this case, the electronic device determines the size of the first subfolder according to S204 below.
S204, the electronic equipment determines that the first subfolder is a non-fixed folder, and recursively scans to determine the size of the first subfolder.
Specifically, in the above S202, the electronic device determines that the subfolder in the index file does not have the same relative path as the first subfolder. Thus, the electronic device may determine that the first subfolder is a subfolder that is not fixed in size, or is fixed in size but is a subfolder stored in the index file. At this time, the electronic device may determine the size of the first subfolder by way of a recursive scan.
The technical scheme provided by the embodiment at least has the following beneficial effects: the electronic equipment matches the relative path of the subfolders under the root directory folder with the relative path stored in the index file, so that whether the subfolders under the root directory folder are fixed-size and known-size folders or not is accurately distinguished. The electronic equipment determines the size of a folder with a fixed size and a known size under the root directory folder according to the index file, and determines the sizes of other folders in a recursive scanning mode. The time to determine the size of a folder with a fixed directory size is reduced.
Alternatively, as shown in fig. 2, after the electronic device determines the size of the first folder through the scheme described in S203 or S204, the electronic device may also determine the size of the root directory folder through S205 and S206 below. S205 and S206 are explained in detail below:
s205, the electronic equipment determines whether all subfolders below the root directory folder are traversed.
Whether the electronic device traverses all subfolders below the root directory folder or not affects subsequent execution actions of the electronic device is described in the following scenes:
scenario 1, the electronic device does not traverse all subfolders under the root directory folder.
In this scenario, the electronic device re-determines the first subfolder from the non-traversed folders, and sequentially executes the above S201-S205 until the electronic device determines that the traversal is completed for all subfolders under the root directory folder. After that, the electronic apparatus executes the following S206.
Scenario 2, the electronic device has traversed all subfolders under the root directory folder.
In scenario 2, the electronic device determines the size of the root directory folder by S206 below.
S206, the electronic equipment calculates the size of the root directory folder in a recursion mode according to the size of each first sub-folder.
Optionally, the electronic device reads the index file to determine the size of all subfolders of known size and fixed size under the root directory folder. The electronic device determines the size of the last level subfolder by means of scanning. And then the electronic equipment sequentially calculates the sizes of the superior subfolders in a recursive calculation mode until the size of the root directory folder is determined. The electronic device determines the size of the ith subfolder to be the sum of the sizes of each (i + 1) th subfolder in the ith subfolder, wherein i is a positive integer.
It should be noted that in the above S201-S204, the electronic device may determine the relative path of the subfolder one at a time, and determine the size of the subfolder. Alternatively, the electronic device may determine the relative paths of a plurality of subfolders at a time, and determine the sizes of the plurality of subfolders simultaneously in a parallel processing manner. Alternatively, the electronic device may determine the relative paths of a plurality of subfolders at a time, and then sequentially determine the size of each subfolder in a serial processing manner. The present disclosure is not limited thereto.
Optionally, before the electronic device obtains the index file, the electronic device may further determine and mark a fixed folder under the root directory folder.
As shown in fig. 3, the electronic device determining and marking the pinned folder under the root directory folder includes at least the following S300-S304, which are described in detail below.
S300, the electronic equipment acquires the subfolders under the root directory folder.
Specifically, for an application program installed in the electronic device, the electronic device may obtain the subfolders in the root directory folder by directly reading the subfolders in the root directory folder.
S301, the electronic equipment determines whether the subfolders are fixed-size folders.
It should be noted that the method for determining, by the electronic device, whether the subfolders are fixed-size folders at least includes: the following modes 1 and 2.
Mode 1, the electronic device scans the size of the subfolder at fixed intervals, and determines whether the size of the subfolder changes in different periods. And if the subfolder is not changed, determining that the subfolder is a subfolder with a fixed size.
And 2, determining the folder with the fixed size in a manual marking mode.
Specifically, the electronic device receives a first operation, and the first operation is used for indicating that the target folder is a fixed-size folder. The electronic equipment determines a folder with a fixed size according to the first operation.
Optionally, in the mode 2, the first operation may also be directly used to instruct the electronic device to label the target folder as a folder with a fixed size.
It should be noted that the above manner 1 and manner 2 are only used to illustrate a method for determining whether a sub folder is a folder with a fixed size by an electronic device, and should not be construed as limiting the same. The electronic device may also determine whether the subfolders are fixed-size folders by other methods, which is not limited in this application.
S302, when the subfolders are subfolders with fixed sizes, the electronic equipment adds a first identifier to the subfolders.
The first identification is used for identifying the subfolders as the fixed-size folders.
It should be noted that the above S300-S302 describe a method for determining a fixed folder and adding an identifier to the fixed folder by the electronic device. In a specific implementation process, the first identifier can also be directly added to the subfolder in the development stage of the application program. The method specifically comprises the following steps:
in the process of creating each subfolder for the application program in the development stage of the application program, whether each subfolder is a subfolder with a fixed size is determined. If yes, adding a first identifier for the subfolder. Therefore, when the electronic equipment installs the application program, the subfolder can be determined to be the subfolder with the fixed size according to the first identifier in the subfolder. The manner of adding the first identifier to the subfolder in the application development stage is similar to the process in S300-S302, and details of this disclosure are not repeated here.
The technical scheme provided by the embodiment at least has the following beneficial effects: the electronic device first adds a first identifier to a fixed-size folder before scanning the root directory file. Therefore, the electronic device can directly determine whether the subfolders under the root directory folder are fixed-size folders according to the first identifier, so that a basis is provided for subsequently establishing the index file and updating the index file.
Optionally, as shown in fig. 3, when the electronic device determines that the sub-folder is a folder with a fixed size, the electronic device may further determine the size of the sub-folder, and create an index file. Specifically, the electronic device may determine the size of the subfolder and create the index file by performing the following S303 and S304.
S303, the electronic equipment scans the subfolders and determines the sizes of the subfolders.
In one implementation, the electronic device may determine the size of the subfolders using a recursive scanning method. This is not described in detail herein.
S304, the electronic equipment generates an index file according to the relative path of the subfolders and the sizes of the subfolders.
Optionally, after determining the size of the subfolder, the electronic device determines a subfolder relative path of the subfolder relative to the root directory, and writes the subfolder relative path and the subfolder size into the index file collectively.
The technical scheme provided by the embodiment at least has the following beneficial effects: the electronic device first determines subfolders of a fixed size and the sizes of these subfolders before determining the size of the root directory folder. And the electronic equipment generates an index file according to the relative path of the subfolders and the sizes of the subfolders. Thus, when the electronic equipment determines the size of the root directory folder, the electronic equipment can directly determine the size of the fixed folder according to the index file. The efficiency of the electronic equipment in determining the size of the root directory folder is improved.
It should be noted that the electronic device may generate the index file for the root directory folder at an initial stage, and after that, when the electronic device determines the size of the root directory folder each time, the size of the fixed folder under the root directory folder may be determined directly according to the index file.
Or, the electronic device may also generate and create an initial index file when determining the size of the root directory folder for the first time, and then write the relative path and size of the fixed file in the root directory folder into the index file by identifying the subfolder with the first identifier in the root directory and scanning the manner of determining the size of the subfolder with the first identifier, so as to obtain the index file. In each subsequent scan, the electronic device determines the size of the current root directory folder from the index file generated when the previous scan determined the size of the root directory folder.
Optionally, with reference to fig. 2, as shown in fig. 4, the method further includes the following steps S400 and S401:
wherein, prior to S100, the electronic device performs the following S400.
S400, the electronic equipment scans the root directory folder and determines whether the index file is included in the root directory folder or not.
When the index file exists in the root directory folder, the electronic device directly executes the step S100 and acquires the index file.
When there is no index file under the root directory folder, the electronic device first performs S401 below, and after S401, the electronic device performs S100.
S401, the electronic equipment creates an index file.
Alternatively, the electronic device may create the index file under the root directory folder. In this step, the index file created by the electronic device may be an empty index file; or, the index file created by the electronic device may include the relative path and size of some or all of the fixed files, which is not limited in this application.
After S401, the electronic device executes S100.
The technical scheme provided by the embodiment at least has the following beneficial effects: when no index file exists in the root directory folder, the electronic device can add the index file in the root directory folder in a mode of creating the index file, and the situation that the method for determining the size of the folder provided by the disclosure cannot be applied due to the fact that no index file exists in the root directory folder is avoided. In addition, in conjunction with the update process for the index file described below, when the size of the root directory folder is first determined, even if an empty index file is created, the time for subsequently determining the size of the root directory folder can be reduced by subsequently updating the index file.
In one possible implementation manner, the index file acquired by the electronic device in S100 may not include all the fixed folders under the root directory folder. For a fixed folder which is not written into the index file, the electronic device still needs to determine the size of the fixed folder by adopting a recursive scanning mode in the process of determining the size of the root directory folder each time.
To avoid this, the present application may update the index file by following S402-S404 to determine the relative path and size of each fixed folder having the first identifier under the root directory folder in the index file. Hereinafter, S402 to S404 will be specifically described:
s402, the electronic equipment determines whether the first folder comprises a first identifier.
Wherein, in case that the first folder includes the first identifier, the electronic device may update the index file through the following S403 and S404.
S403, the electronic equipment determines the size of the subfolders and the relative paths of the subfolders.
The electronic device determines the size of the subfolder, which may be the size of the subfolder determined by scanning in S104. The subfolder relative path determined by the electronic device may be the subfolder relative path determined by the electronic device in S101.
Or the electronic device may determine the size of the subfolder and the relative path of the subfolder in other manners, which is not limited in this application.
S404, the electronic equipment updates the index file.
Optionally, the electronic device writes the size of the subfolder and the relative path of the subfolder into the index file, and generates a new index file.
For example, the electronic device determines that the subfolder has a relative path of. magic _ emoji/resource/129 and the subfolder size 13830. The electronic device writes the subfolder relative path and the subfolder size into the index file as shown in table 1, resulting in a new index file as shown in table 2 below.
TABLE 2
Subfolder relative path Size of subfolder
.emoji/resource 2343
.magic_emoji/resource/128 12430
filter_resource/12 1048
.magic_emoji/resource/129 13830
The technical scheme provided by the embodiment at least has the following beneficial effects: the electronic equipment can update the index file when scanning the folder with the fixed size which is not added into the index file every time, so that the number of the folders with the fixed size indicated by the index file is increased, and the time for determining the size of the root directory folder is further reduced.
It is understood that, in practical implementation, the electronic device of the embodiment of the present disclosure may include one or more hardware structures and/or software modules for implementing the corresponding folder size determination method, and these hardware structures and/or software modules may constitute an electronic device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Based on such understanding, the embodiment of the present disclosure also provides an apparatus for determining a folder size, which may be applied to an electronic device. Fig. 5 is a schematic structural diagram illustrating an apparatus for determining a folder size according to an embodiment of the present disclosure. As shown in fig. 5, the means for determining the size of the folder may include: an acquisition module 501 and a processing module 502.
An obtaining module 501, configured to obtain an index file, where the index file includes a relative path of each fixed folder in at least one fixed folder and a size of each fixed folder; the fixed folder is a subfolder with fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder;
a processing module 502, configured to read the index file and determine the size of each fixed folder;
the processing module 502 is further configured to scan and determine the size of a subfolder other than at least one fixed folder in the root directory folder;
the processing module 502 is further configured to determine the size of the root directory folder according to the size of each fixed folder and the size of at least one subfolder other than the fixed folder.
Optionally, the processing module 502 is specifically configured to:
reading the index file and determining the relative path of each fixed folder;
instruct the obtaining module 501 to obtain the relative path of the first subfolder; the first subfolder is any subfolder in the root directory folder;
determining whether a second subfolder exists in the index file; the second subfolder is a fixed folder with the same relative path as the first subfolder;
if so, determining the size of the second subfolder as the size of the first subfolder;
if not, scanning to determine the size of the first subfolder;
accumulating the size of each first subfolder in the root directory folder, and determining the size of the root directory folder.
Optionally, the obtaining module 501 is further configured to obtain a subfolder under the root directory folder;
the processing module 502 is further configured to add a first identifier to the sub-folder when the sub-folder is a fixed-size folder; the first identifier is used for identifying the subfolder as a fixed folder.
Optionally, the processing module 502 is further configured to:
updating the index file when the first subfolder comprises the first identifier; the updated index file is also used to indicate the relative path of the first subfolder relative to the root directory folder, as well as the size of the first subfolder.
Optionally, the index file is a file stored in the hard disk; or, the index file is a file written into the memory.
Optionally, the processing module 502 is further configured to:
scanning a root directory folder;
when the index file is not included in the root directory folder, the index file is created.
The embodiment of the disclosure also provides an electronic device, and the terminal can be a user terminal such as a mobile phone and a computer. Fig. 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device may be a means for determining the size of a folder may comprise at least one processor 61, a communication bus 62, a memory 63 and at least one communication interface 64.
The processor 61 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure. As an example, in connection with fig. 5, the processing module in the electronic device implements the same functions as the processor 61 in fig. 6.
The communication bus 62 may include a path that carries information between the aforementioned components.
The communication interface 64 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as a server, an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc. As an example, in connection with fig. 5, the acquisition module 501 and the implemented functions in the electronic device are the same as the functions implemented by the communication interface 64 in fig. 6.
The memory 63 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 63 is used for storing application program codes for executing the disclosed solution, and is controlled by the processor 61. The processor 61 is configured to execute application program code stored in the memory 63 to implement the functions in the disclosed method.
In particular implementations, processor 61 may include one or more CPUs such as CPU0 and CPU1 in fig. 6, for example, as an example.
In particular implementations, an electronic device may include multiple processors, such as processor 61 and processor 65 in FIG. 6, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, the electronic device may also include an input device 66 and an output device 67, as one embodiment. The input device 66 communicates with the output device 67 and may accept user input in a variety of ways. For example, the input device 66 may be a mouse, a keyboard, a touch screen device or a sensing device, and the like. The output device 67 is in communication with the processor 61 and may display information in a variety of ways. For example, the output device 61 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, or the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is not intended to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The present disclosure also provides a computer-readable storage medium comprising instructions stored thereon, which when executed by a processor of a computer device, enable a computer to perform the method of determining a folder size provided by the illustrated embodiments described above. For example, the computer readable storage medium may be a memory 63 comprising instructions executable by a processor 61 of the electronic device to perform the above-described method. Also for example, the computer readable storage medium may be a memory comprising instructions executable by a processor of a server to perform the above-described method. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of determining a folder size as illustrated in any of the above figures 1-4.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for determining folder size, comprising:
acquiring an index file, wherein the index file comprises a relative path of each fixed folder in at least one fixed folder and the size of each fixed folder; the fixed folder is a subfolder with a fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder;
reading the index file and determining the size of each fixed folder;
recursively scanning the size of subfolders other than the at least one fixed folder in the root directory folder;
and determining the size of the root directory folder according to the size of each fixed folder and the sizes of subfolders except the at least one fixed folder.
2. The method of claim 1, wherein determining the size of the root directory folder based on the size of each of the fixed folders and the size of the subfolders other than the at least one fixed folder comprises:
reading the index file, and determining the relative path of each fixed folder;
recursively scanning the root directory folder to obtain a relative path of each first subfolder; the first subfolder is any one of subfolders at all levels in the root directory folder;
determining whether a relative path identical to a relative path of the first subfolder exists in the index file;
if so, determining that the first subfolder is a fixed folder, and determining the size of the fixed folder corresponding to the relative path which is the same as the relative path of the first subfolder as the size of the first subfolder;
if not, determining that the first subfolder is a non-fixed folder, and determining the size of the first subfolder through recursive scanning;
recursively calculating the size of the root directory folder according to the size of each of the first subfolders.
3. The method of claim 2, wherein prior to the obtaining the index file, the method further comprises:
acquiring subfolders under the root directory folder;
when the subfolders are fixed-size folders, adding first identifications for the subfolders; the first identification is used for identifying the subfolders as fixed-size folders.
4. The method of claim 3, wherein after said adding a first identification to the subfolder and recursively scanning to determine a size of the first subfolder, the method further comprises:
updating the index file when the first subfolder includes a first identifier; the updated index file is further configured to indicate a relative path of the first subfolder relative to the root directory folder, and a size of the first subfolder.
5. The method according to any one of claims 1 to 4, wherein the index file is a file stored in a hard disk; or, the index file is a file written into the memory.
6. The method of any of claims 1-4, wherein prior to obtaining the index file, the method further comprises:
scanning the root directory folder;
when the index file is not included in the root directory folder, the index file is created.
7. An apparatus for determining a folder size, comprising: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring an index file, wherein the index file comprises a relative path of each fixed folder in at least one fixed folder and the size of each fixed folder; the fixed folder is a subfolder with a fixed size in each level of subfolders of the root directory folder, and the relative path is a path of the subfolder in the root directory folder relative to the root directory folder;
the processing module is used for reading the index file and determining the size of each fixed folder;
the processing module is further configured to recursively scan the sizes of subfolders other than the at least one fixed folder in the root directory folder;
the processing module is further configured to determine the size of the root directory folder according to the size of each fixed folder and the sizes of subfolders other than the at least one fixed folder.
8. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of determining a folder size of any of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of determining folder size of any of claims 1-6.
10. A computer program product, characterized in that it comprises computer instructions which, when run on an electronic device, cause the electronic device to perform the method of determining a folder size according to any of claims 1-6.
CN202110955158.4A 2021-08-19 2021-08-19 Method, device, equipment and storage medium for determining size of folder Active CN113722279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110955158.4A CN113722279B (en) 2021-08-19 2021-08-19 Method, device, equipment and storage medium for determining size of folder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110955158.4A CN113722279B (en) 2021-08-19 2021-08-19 Method, device, equipment and storage medium for determining size of folder

Publications (2)

Publication Number Publication Date
CN113722279A true CN113722279A (en) 2021-11-30
CN113722279B CN113722279B (en) 2024-03-01

Family

ID=78676892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110955158.4A Active CN113722279B (en) 2021-08-19 2021-08-19 Method, device, equipment and storage medium for determining size of folder

Country Status (1)

Country Link
CN (1) CN113722279B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673302A (en) * 2009-09-22 2010-03-17 珠海市安德网络科技有限公司 Method for improving scanning speed of antivirus engine
CN102542045A (en) * 2010-12-28 2012-07-04 微软公司 Unified access to resources
CN103500077A (en) * 2013-10-16 2014-01-08 北京国双科技有限公司 File storage method and device
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory
CN106909632A (en) * 2017-01-23 2017-06-30 努比亚技术有限公司 Garbage files searching method and terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
CN107291915A (en) * 2017-06-27 2017-10-24 北京奇艺世纪科技有限公司 A kind of small documents storage method, small documents read method and system
WO2017219869A1 (en) * 2016-06-24 2017-12-28 北京金山安全软件有限公司 Cache scanning method and apparatus for application program, and electronic device
CN108021590A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 A kind of destination object attribute determining method, attribute update method and device
CN111142798A (en) * 2019-12-26 2020-05-12 紫光云(南京)数字技术有限公司 Method for storing file with fixed size in storage device by spark streaming
CN111611606A (en) * 2020-05-22 2020-09-01 北京百度网讯科技有限公司 File encryption and decryption method and device
CN112002130A (en) * 2020-10-30 2020-11-27 武汉中科通达高新技术股份有限公司 Data management method, device, server and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673302A (en) * 2009-09-22 2010-03-17 珠海市安德网络科技有限公司 Method for improving scanning speed of antivirus engine
CN102542045A (en) * 2010-12-28 2012-07-04 微软公司 Unified access to resources
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory
CN103500077A (en) * 2013-10-16 2014-01-08 北京国双科技有限公司 File storage method and device
WO2017219869A1 (en) * 2016-06-24 2017-12-28 北京金山安全软件有限公司 Cache scanning method and apparatus for application program, and electronic device
CN108021590A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 A kind of destination object attribute determining method, attribute update method and device
CN106909632A (en) * 2017-01-23 2017-06-30 努比亚技术有限公司 Garbage files searching method and terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
CN107291915A (en) * 2017-06-27 2017-10-24 北京奇艺世纪科技有限公司 A kind of small documents storage method, small documents read method and system
CN111142798A (en) * 2019-12-26 2020-05-12 紫光云(南京)数字技术有限公司 Method for storing file with fixed size in storage device by spark streaming
CN111611606A (en) * 2020-05-22 2020-09-01 北京百度网讯科技有限公司 File encryption and decryption method and device
CN112002130A (en) * 2020-10-30 2020-11-27 武汉中科通达高新技术股份有限公司 Data management method, device, server and computer readable storage medium

Also Published As

Publication number Publication date
CN113722279B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN106886375A (en) The method and apparatus of data storage
WO2020224544A1 (en) Address selection method and apparatus, and computer readable storage medium
CN103914439A (en) Method, device and system for online document edition
US20130198198A1 (en) Generating method, generating system, and recording medium
JP2015508918A (en) Redundant consumer transaction rule filtering
CN109408682B (en) Regular expression matching method, system and equipment
CN116521956A (en) Graph database query method and device, electronic equipment and storage medium
CN110502317A (en) A kind of method and apparatus of transaction management
CN111367529A (en) Code contribution statistical method and device
CN111176705B (en) Feature library upgrading method and device
CN113722279A (en) Method, device and equipment for determining size of folder and storage medium
CN113282799A (en) Node operation method and device, computer equipment and storage medium
CN110109867A (en) Improve the method, apparatus and computer program product of on-line mode detection
CN108804625B (en) LSM tree optimization method and device and computer equipment
US8893099B1 (en) Inner function local variable name shadowing
CN113127357B (en) Unit test method, apparatus, device, storage medium, and program product
CN110750268B (en) File cleaning method and device, computer readable storage medium and electronic equipment
US8739115B2 (en) Using infeasible nodes to select branching variables
WO2020209180A1 (en) Profile generation device
CN113015117A (en) User positioning method and device, electronic equipment and storage medium
CN103812908A (en) Cloud file processing method and system
CN108920749B (en) Pipeline two-dimensional and three-dimensional data updating method and device and computer readable storage medium
CN112100307A (en) Data processing method, path searching processing method and device and electronic equipment
CN111339061A (en) Data migration method and system of distributed database
CN105389395B (en) Information acquisition method and device

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
GR01 Patent grant
GR01 Patent grant