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

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

Info

Publication number
CN113722279B
CN113722279B CN202110955158.4A CN202110955158A CN113722279B CN 113722279 B CN113722279 B CN 113722279B CN 202110955158 A CN202110955158 A CN 202110955158A CN 113722279 B CN113722279 B CN 113722279B
Authority
CN
China
Prior art keywords
folder
subfolder
size
fixed
index file
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.)
Active
Application number
CN202110955158.4A
Other languages
Chinese (zh)
Other versions
CN113722279A (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

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

Abstract

The present disclosure relates to a method, an apparatus, a device, and a storage medium for determining a folder size, and relates to the field of data processing. Comprising the following steps: obtaining 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 to determine the size of subfolders outside 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 size of at least one subfolder except the fixed folder. Based on the method, the electronic equipment can determine the size of the folder with fixed size without scanning, so that the time required by the electronic equipment for scanning the subfolder is greatly reduced, and the efficiency of the electronic equipment for scanning the root directory folder is improved.

Description

Method, device, equipment and storage medium for determining size of folder
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method, apparatus, device, and storage medium for determining a folder size.
Background
In the related art, in order to determine the storage space occupied by an application program, an electronic device needs to scan the size of the storage space occupied by all subfolders under the root directory of the application program one by one (in this disclosure, the size of the storage space occupied by a folder is also referred to as the size of a folder), and accumulate the sizes of the subfolders to determine the size of the storage space occupied by the application program.
However, due to the continuous iteration of the application program, the storage space occupied by the application program is larger and larger, the time required for 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 folder size, so as to at least solve the problem that in the related art, a time required for an electronic device to scan a root directory folder of an application program is longer and longer, and power consumption generated by the electronic device in a scanning process is also higher and higher. The technical scheme of the present disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of determining a size of a folder, including:
Obtaining 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 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 sizes of subfolders outside 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 for 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 except for 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 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 subfolder with the same relative path as the first subfolder;
if yes, 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;
and 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 subfolder is a fixed-size folder, a first identifier is added for the subfolder; the first identifier is used for identifying the subfolder as the fixed folder.
Optionally, after the scanning determines the size of the first subfolder, the method further comprises:
updating the index file when the first subfolder comprises a first identifier; the updated index file is further used to indicate a relative path of the first subfolder with respect 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 the index file is acquired, the method further includes:
scanning the root directory folder;
and when the index file is not included in the root directory folder, creating the index file.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for determining a size of a folder, 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 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 sizes of subfolders other than the at least one fixed folder in the root directory folder;
The processing module is further configured to determine a size of the root directory folder according to a size of each fixed folder and a size of a subfolder 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 acquisition module to acquire 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 subfolder with the same relative path as the first subfolder;
if yes, 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;
and 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 subfolder; the first identifier 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 comprises a first identifier; the updated index file is further used to indicate a relative path of the first subfolder with respect 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;
and when the index file is not included in the root directory folder, creating the index file.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
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 of the above 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 folder size as described in any one of the first aspect and the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of the above-described first aspects and optionally of the first aspect of determining a folder size.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: when the electronic device needs to determine the size of the root directory folder, the electronic device first determines the size of the fixed folder according to the index file, and then determines the sizes of folders other than the fixed folder by scanning the size of the folder. Since the index file has a relative path of the fixed folder, and the size of the fixed folder. Therefore, when the subfolder is a folder with a fixed size, the electronic device can directly determine the size of the subfolder according to the relative path of the subfolder. Compared with the method for determining the size of the subfolder by scanning the subfolder, the method can directly determine the size of the subfolder indicated by the index file by simply comparing relative paths according to the size of the subfolder, greatly reduces the time required by the electronic device for scanning the subfolder, and further improves the efficiency of the electronic device for scanning the 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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flowchart illustrating a method of determining folder size according to an exemplary embodiment.
FIG. 2 is a flowchart illustrating another method of determining folder size according to an exemplary embodiment.
FIG. 3 is a flowchart illustrating yet another method of determining folder size according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating yet another method of determining folder size according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus for determining folder size according to an exemplary embodiment.
Fig. 6 is a schematic diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Before describing the method for determining the size of the folder in detail, the related nouns of the embodiments of the disclosure are explained, and the application scenario and the implementation environment of the embodiments of the disclosure are described.
First, terms related to the embodiments of the present disclosure will be explained.
1. Size of folder
In the embodiment of the present disclosure, the size of the folder refers to the size of the storage space occupied by the folder. In this disclosure, an installation folder of an application is mainly described 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 newly added, modified or deleted.
3. Root directory folder
In the disclosed embodiment, the root directory folder refers to a folder to be scanned. Alternatively, when the electronic device needs to scan the size of the storage space occupied by the application, the root directory folder is the installation folder of the application.
Taking the electronic device as a mobile phone, the name of the application program to be scanned is application program a as an example, the absolute path of the root directory folder in the embodiment of the disclosure is "mobile phone/internal storage device/application program a". The root directory folder is "application a".
4. Absolute path and relative path of folder
The 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 stored under System under the C-disc windows folder 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 with the example above, the path of folder B relative to windows folders is: system/folder B. In this disclosure, a subfolder relative path refers to a subfolder relative path to a root directory folder.
Next, an application scenario of the embodiment of the present disclosure will be described.
The method for determining the size of the folder 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 subfolders under the root directory folder one by one (for example, using a recursive scanning manner), and then accumulate the sizes of all 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 a 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 an 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 for scanning the storage space occupied by the application program by the electronic device is longer and longer, and the CPU resource occupied by the process, the generated power consumption and the like are also higher and higher, so that a method for improving the efficiency of scanning the folder size by the electronic device is needed currently.
In order to improve the efficiency of electronic equipment in scanning folders, the embodiment of the disclosure provides a method for scanning the sizes of the folders, and the electronic equipment writes the relative path of the folders with fixed sizes in the folders relative to the root directory to which the folders belong and the specific sizes of the folders into an index file in advance. 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 fixed size, and then determines the size of the folder with 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 is an exemplary description of a method for determining a folder size provided by an embodiment of the present disclosure:
the method for determining the size of the folder can be applied to electronic equipment.
In some embodiments, the electronic device may be a terminal, or may be another electronic device for determining a size of a folder, which is not limited in this 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 (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or the like, which may install and use a content community application (such as a fast hand), and the specific form of the electronic device is not particularly limited in this disclosure. The system can perform 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 application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method of determining a folder size according to an exemplary embodiment, and as shown in fig. 1, the method of determining a folder size is used in a scene of determining a folder size, and includes the following S100-S103.
S100, the electronic equipment acquires the index file.
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 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.
Alternatively, in the embodiment of the present disclosure, the index file may be a file of 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.
When the index file is a file of a specific format stored in the storage space, the index file may be a file identified as index. In this case, when the electronic device obtains the index file, the relative path of the fixed folder indicated by the index file may 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 a root directory folder to be scanned.
When the index file is the index file written in the memory of the electronic equipment, the electronic equipment can directly load the index file in the memory to determine the relative path of the fixed folder indicated by the index file; and the size of each fixed folder. At this time, the index file may be written into the memory of the electronic device in the form of program codes.
For an example, the format of the index file may be referred to as table 1 below:
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, in order to determine the subfolders under 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 fixed folder stored in the index file. If the sub-folders are the same, the electronic device determines that the sub-folders are sub-folders with fixed sizes, and the sizes of the sub-folders are the same as the sizes of the fixed folders of the opposite paths of the sub-folders.
S102, the electronic equipment recursively scans the sizes of subfolders except at least one fixed folder in the root directory folder.
Optionally, after S101, the electronic device determines a size of at least one fixed folder in the root directory folder. For subfolders other than at least one fixed folder, the size of the subfolders is not known, or the subfolders are not fixed in size. Thus, the electronic device determines the size of the subfolder outside the at least one fixed folder by means of a 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 at least one subfolder except the fixed folder.
Optionally, the electronic device accumulates the size of each fixed folder and the size of at least one subfolder 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 to obtain the relative path of the first-stage subfolder step by step, and the relative path of the second-stage subfolder reaches the relative path of the last-stage subfolder. The electronic device first determines whether a fixed folder exists in a primary subfolder (i.e., a subfolder that is the same as the relative path in the index directory), and if so, marks the size of the primary subfolder. The electronic device skips the first level subfolder, which is a fixed folder, and continues recursively scanning the other first level subfolders.
The electronic device then determines the secondary subfolders underlying these other primary subfolders and determines whether a fixed folder exists in the primary subfolders, and if so, marks the size of the secondary subfolders. The electronic device skips the secondary subfolder and continues to recursively scan the other secondary subfolders.
According to the mode, the electronic equipment sequentially recursively scans each level of subfolders until all fixed subfolders under the root directory folder are marked, and scans and determines the size of the last level of subfolders in the non-fixed subfolders. The electronic device determines the size of the root directory folder by means of recursive computation.
The technical scheme provided by the embodiment at least brings the following beneficial effects: when the electronic device needs to determine the size of the root directory folder, the electronic device first determines the size of the fixed folder according to the index file, and then determines the sizes of folders other than the fixed folder by scanning the size of the folder. Since the index file has a relative path of the fixed folder, and the size of the fixed folder. Therefore, when the subfolder is a folder with a fixed size, the electronic device can directly determine the size of the subfolder according to the relative path of the subfolder. Compared with the method for determining the size of the subfolder by scanning the subfolder, the method can directly determine the size of the subfolder indicated by the index file by simply comparing relative paths according to the size of the subfolder, greatly reduces the time required by the electronic device for scanning the subfolder, and further improves the efficiency of the electronic device for scanning the root directory folder.
In one possible implementation, the electronic device may match the relative path in the index file by traversing the relative path of the subfolders under the root directory folder. The electronic equipment determines that subfolders successfully matched with the relative path are subfolders with fixed sizes under the root directory folder, and determines the sizes of the subfolders through the index file. For other subfolders under the root directory folder, the electronic device determines the size of these subfolders by scanning.
Alternatively, as shown in fig. 2 in conjunction with fig. 1, S103 may be specifically implemented by the following S200-S206. The following is a specific description:
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,. Big_EMoji/resource/128, filter_resource/12.
S201, the electronic equipment recursively scans the root directory folder to acquire the 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 device determines whether a relative path which is the same as the relative path of the first subfolder exists in the index file.
Optionally, after the electronic device obtains the relative path of the first subfolder, the electronic device respectively matches the relative path of the first subfolder with the relative path stored in the index file until the relative path is matched with the same relative path as the relative path of the first subfolder from the index file, or the relative paths in the index file are completely matched.
If the electronic device matches the same relative path as the relative path of the first subfolder from the index file, the electronic device determines that the same relative path as the relative path of the first subfolder exists in the index file.
If the electronic device determines that the relative paths in the index file are all matched and do not match the same relative paths as the relative paths of the first subfolder, then the electronic device does not have the same relative paths as the relative paths of the first subfolder in the index file.
It should be noted that whether there is a relative path in the index file that is the same as the relative path of the first subfolder affects the steps that the electronic device performs subsequently. The following will explain the case:
In case 1, the electronic device determines that there is a relative path in the index file that is the same as the relative path of the first subfolder.
In this case, the electronic apparatus determines the size of the first subfolder according to S203 below.
S203, the electronic equipment determines the first subfolder as a fixed folder, and determines the size of the fixed folder corresponding to the same relative path 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 there is a relative path in the index file that is the same 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 subfolder. The electronic equipment 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 subfolder, the electronic device matches the relative path of the first subfolder with the relative path in the index file table one by one. If the same path is matched, the first subfolder is determined to be a folder with a fixed size. At this time, the electronic device will not scan the size of the first subfolder, and directly determine the value corresponding to the relative path in the table as the size of the first subfolder.
For example, the electronic device determines the first subfolder relative path as: emoji/resource. And the electronic equipment matches the relative path of the first folder with the relative path stored in the index file, and determines that the relative path of the subfolder 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 subfolder size.
In case 2, the electronic device determines that the index file does not have a relative path identical to 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 subfolder, and recursively scans to determine the size of the first subfolder.
Specifically, in S202 described above, the electronic device determines that there is no subfolder in the index file that is the same as the relative path of the first subfolder. Thus, the electronic device may determine that the first subfolder is a subfolder that is not fixed in size, or a subfolder that is fixed in size but stored in the index file. At this time, the electronic device may determine the size of the first subfolder by means of recursive scanning.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the electronic device matches the relative path of the subfolders under the root directory folder with the relative path stored in the index file, thereby accurately distinguishing whether the subfolders under the root directory folder are folders with fixed and known sizes. The electronic equipment determines the size of the folder with fixed and known size under the root directory folder according to the index file, and determines the sizes of other folders in a recursion scanning mode. The time to determine the size of a fixed directory size folder 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 the following S205 and S206. S205 and S206 are described in detail below:
s205, the electronic device determines whether to traverse all subfolders under the root directory folder.
Whether the electronic device traverses all subfolders under the root directory folder affects subsequent execution actions of the electronic device is described in the following scenarios:
scene 1, electronic device does not traverse all subfolders under the root directory folder.
Under the scene, the electronic device redefines the first subfolder from the non-traversed folders, and sequentially executes the steps S201-S205 until the electronic device determines that the traversing of all subfolders under the root directory folder is completed. After that, the electronic apparatus executes the following S206.
Scene 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 following S206.
S206, the electronic equipment recursively calculates the size of the root directory folder according to the size of each first subfolder.
Optionally, the electronic device reads the index file to determine the size of all sub-folders of known size and fixed size under the root directory folder. The electronic equipment determines the size of the sub-folder of the last stage in a scanning mode. And then the electronic equipment sequentially calculates the sizes of the upper sub-folders in a recursive calculation mode until the sizes of the root directory folders are determined. The electronic equipment determines that the size of the ith subfolder is the sum of the sizes of the (i+1) th subfolder in the ith subfolder, and i is a positive integer.
It should be noted that in the above-described S201-S204, the electronic device may determine one subfolder relative path at a time and determine the size of the subfolder. Alternatively, the electronic device may determine the relative paths of multiple subfolders at a time, and determine the sizes of the subfolders simultaneously in a parallel processing manner. Alternatively, the electronic device may determine the relative paths of multiple subfolders each time, and then determine the size of each subfolder in turn using serial processing. The present disclosure is not limited in this regard.
Optionally, the electronic device may also determine and mark a fixed folder under the root directory folder before the electronic device obtains the index file.
As shown in FIG. 3, the electronic device determines and marks the fixed folder under the root directory folder as including at least S300-S304 below, which are described in detail below.
S300, the electronic equipment acquires the subfolders under the root directory folder.
Specifically, for an application program that has been installed in the electronic device, the electronic device may acquire the subfolders under the root directory folder by directly reading the subfolders under the root directory folder.
S301, the electronic device determines whether the subfolder is a folder with a fixed size.
It should be noted that, the method for determining whether the subfolder is a folder with a fixed size by the electronic device at least includes: modes 1 and 2 below.
In the mode 1, the electronic device scans the size of the subfolder every fixed period to determine whether the size of the subfolder changes in different periods. If the sub-folder is unchanged, determining that the sub-folder is a sub-folder with a fixed size.
And 2, determining the folder with a fixed size by a manual labeling mode.
Specifically, the electronic device receives a first operation for indicating that the target folder is a fixed-size folder. The electronic device determines a folder of a fixed size according to the first operation.
Optionally, in 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.
Note that, the above-described modes 1 and 2 are only for illustrating the method of determining whether the subfolder is a folder with a fixed size by the electronic device, and should not be construed as limiting. The electronic device may also determine whether the subfolder is a fixed-size folder by other methods, which is not limited in this application.
S302, when the subfolder is a subfolder with fixed size, the electronic equipment adds a first identification for the subfolder.
The first identifier is used for identifying the subfolder as a folder with a fixed size.
It should be noted that the above S300-S302 describe a method in which the electronic device determines a fixed folder and adds an identifier to the fixed folder. In the specific implementation process, the first identifier can also be directly added to the subfolder in the application program development stage. The method comprises the following steps:
In the application development stage, in the process of creating each subfolder for the application program, whether each subfolder is a subfolder with fixed size is determined. If yes, a first identification is added for the subfolder. Thus, when the electronic device installs the application program, the subfolder can be determined to be a subfolder with fixed size directly according to the first identification 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, which is not described in detail in this disclosure.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the electronic device first adds a first identification to a fixed-size folder before scanning the root directory file. In this way, the electronic device can directly determine whether the subfolder under the root directory folder is a folder with a fixed size according to the first identifier, thereby providing a basis for subsequently establishing the index file and updating the index file.
Optionally, as shown in fig. 3, when the electronic device determines that the subfolder is a folder with a fixed size, the electronic device may further determine the size of the subfolder 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 size of the subfolders.
In one implementation, the electronic device may determine the size of the subfolder using a recursive scanning method. This application is not repeated here.
S304, the electronic equipment generates an index file according to the relative path of the subfolders and the size of the subfolders.
Optionally, after determining the size of the sub-file, the electronic device determines a sub-folder relative path of the sub-folder with respect to the root directory, and uniformly writes the sub-folder relative path and the sub-folder size into the index file.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the electronic device first determines the sub-folders of fixed size, and the sizes of these sub-folders, 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 size of the subfolders. Thus, when the electronic device determines the size of the root directory folder, the electronic device 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 an index file for the root directory folder in the initial stage, and then the electronic device may determine the size of the fixed folder under the root directory folder directly according to the index file each time the size of the root directory folder is determined.
Alternatively, the electronic device may generate and create an initial index file when determining the size of the root directory folder for the first time, and then write the fixed file relative path and size under the root directory folder into the index file by identifying the subfolder with the first identifier under the root directory and scanning to determine 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, in conjunction with fig. 2, as shown in fig. 4, the method further includes the following S400 and S401:
wherein, prior to S100, the electronic device performs the following S400.
S400, the electronic equipment scans the root directory folder to determine whether the index file is included under the root directory folder.
When the index file exists under the root directory folder, the electronic device directly executes S100, and the electronic device obtains the index file.
When the index file does not exist 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; alternatively, the index file created by the electronic device may include a relative path and a size of a part or all of the fixed file, which is not limited in this application.
After S401, the electronic apparatus executes S100.
The technical scheme provided by the embodiment at least brings the following beneficial effects: when the index file does not exist in the root directory folder, the electronic equipment can add the index file in the root directory folder in a mode of creating the index file, so that the situation that the method for determining the size of the folder provided by the disclosure cannot be applied due to the fact that the index file does not exist in the root directory folder is avoided. In addition, in connection with the update procedure of 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 the subsequent determination of the size of the root directory folder can be reduced by the subsequent update of the index file.
In a possible implementation, the index file acquired by the electronic device in S100 may not include all the fixed folders under the root directory folder. For the fixed folder which is not written into the index file, the electronic device still needs to determine the size of the fixed folder in a recursion 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 to determine the relative path and size of the index file including the fixed folders under the root directory folder each having the first identification through the following S402-S404. Hereinafter, S402 to S404 will be specifically described:
s402, the electronic device determines whether the first folder comprises a first identifier.
Wherein, in the 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 device determines the size of the subfolder and the relative path of the subfolder.
The electronic device determines the size of the subfolder, which may be the size of the subfolder determined by the electronic device through 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 are 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 to generate a new index file.
For example, the electronic device determines the subfolder relative path to be a big_emoji/resource/129 subfolder size 13830. The electronic device writes the subfolder relative path and 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 brings the following beneficial effects: the electronic device can update the index file each time the fixed-size folder which is not added to the index file is scanned, the number of the fixed-size folders indicated by the index file is increased, and the time required for determining the size of the root directory folder is further reduced.
It will be appreciated that, in actual implementation, the electronic device of the embodiments of the disclosure may include one or more hardware structures and/or software modules configured to implement the foregoing method for determining the size of the folder, where the executing hardware structures and/or software modules may constitute an electronic device. Those of skill in the art will readily appreciate that the algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven 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 disclosure also correspondingly provides a device for determining the size of the folder, which can be applied to electronic equipment. Fig. 5 is a schematic structural view of 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;
the processing module 502 is configured to read the index file and determine a size of each fixed folder;
the processing module 502 is further configured to scan and determine a 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;
the instruction acquisition module 501 acquires 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 subfolder with the same relative path as the first subfolder;
if yes, determining that the size of the second subfolder is the size of the first subfolder;
if not, scanning to determine the size of the first subfolder;
the size of each first subfolder in the root directory folder is accumulated, and the size of the root directory folder is determined.
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 subfolder when the subfolder 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 with respect to the root directory folder, and the 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 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, a computer and the like. Fig. 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the disclosure. The electronic device, which may be a means for determining the size of the folder, may include 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 processor (central processing units, CPU), micro-processing unit, ASIC, or one or more integrated circuits for controlling the execution of the programs of the present disclosure. As an example, in connection with fig. 5, the processing module in the electronic device performs the same function as the processor 61 in fig. 6.
Communication bus 62 may include a path to transfer information between the aforementioned components.
The communication interface 64 uses any transceiver-like means for communicating with other devices or communication networks, such as servers, ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, 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 can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) 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 stand alone and be connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
Wherein the memory 63 is used for storing application program codes for executing the disclosed scheme and is controlled to be executed by the processor 61. The processor 61 is operative to execute application code stored in the memory 63 to thereby implement the functions in the methods of the present disclosure.
In a particular implementation, processor 61 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 6, as an example.
In a particular implementation, as one embodiment, an electronic device may include multiple processors, such as processor 61 and processor 65 in FIG. 6. Each of these processors may be a single-core (single-CPU) processor or may be 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 a particular implementation, the electronic device may also include an input device 66 and an output device 67, as one embodiment. The input device 66 and the output device 67 communicate and may accept user input in a variety of ways. For example, the input device 66 may be a mouse, keyboard, touch screen device, or sensing device, among others. The output device 67 communicates with the processor 61, and information may be displayed in a variety of ways. For example, the output device 61 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present disclosure also provides a computer-readable storage medium comprising instructions, the computer-readable storage medium having instructions stored thereon, which when executed by a processor of a computer device, enable the computer to perform the method of determining folder size provided by the above-described illustrated embodiments. For example, the computer readable storage medium may be a memory 63 comprising instructions executable by the processor 61 of the electronic device to perform the above-described method. For another example, a computer-readable storage medium may be a memory including instructions executable by a processor of a server to perform the method described above. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a ROM, RAM, 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 shown in any one 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 adaptations, uses, or adaptations of the disclosure following the general 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of determining a size of a folder, comprising:
obtaining 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 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 sizes of subfolders outside the at least one fixed folder in the root directory folder;
determining 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;
the determining the size of the root directory folder according to the size of each fixed folder and the size of the subfolders except 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 acquire a relative path of each first subfolder; the first subfolder is any subfolder in all levels of subfolders 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 yes, determining the first subfolder as a fixed folder, and determining the size of the fixed folder corresponding to the same relative path as that of the first subfolder as the size of the first subfolder;
If not, determining the first subfolder as a non-fixed subfolder, and recursively scanning to determine the size of the first subfolder;
and recursively calculating the size of the root directory folder according to the size of each first subfolder.
2. The method of claim 1, wherein prior to the obtaining the index file, the method further comprises:
acquiring subfolders under the root directory folder;
when the subfolder is a fixed-size folder, a first identifier is added for the subfolder; the first identifier is used for identifying the subfolder as a folder with a fixed size.
3. The method of claim 2, wherein after said adding a first identification to said subfolder and recursively scanning to determine the size of said first subfolder, said method further comprises:
updating the index file when the first subfolder comprises a first identifier; the updated index file is further used to indicate a relative path of the first subfolder with respect to the root directory folder, and a size of the first subfolder.
4. A method according to any one of claims 1-3, wherein the index file is a file stored in a hard disk; or, the index file is a file written into the memory.
5. A method according to any one of claims 1-3, wherein prior to obtaining the index file, the method further comprises:
scanning the root directory folder;
and when the index file is not included in the root directory folder, creating the index file.
6. An apparatus for determining the size of a folder, 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 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 sizes of subfolders other than the at least one fixed folder in the root directory folder;
the processing module is further configured to determine a size of the root directory folder according to a size of each fixed folder and a size of a subfolder other than the at least one fixed folder;
The processing module is specifically configured to:
reading the index file and determining the relative path of each fixed folder;
recursively scanning the root directory folder and indicating the acquisition module to acquire the relative path of each first subfolder; the first subfolder is any subfolder in all levels of subfolders in the root directory folder;
determining whether the index file has a relative path identical to the relative path of the first subfolder or not, if yes, determining the first subfolder as a fixed folder, and determining the size of the fixed folder corresponding to the relative path identical to the relative path of the first subfolder as the size of the first subfolder;
if not, determining the first subfolder as a non-fixed subfolder, and recursively scanning to determine the size of the first subfolder;
and recursively calculating the size of the root directory folder according to the size of each first subfolder.
7. The apparatus of claim 6, wherein 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 subfolder; the first identifier is used for identifying the subfolder as a folder with a fixed size.
8. The apparatus of claim 7, wherein the processing module is further configured to:
updating the index file when the first subfolder comprises a first identifier; the updated index file is further used to indicate a relative path of the first subfolder with respect to the root directory folder, and a size of the first subfolder.
9. The apparatus according to any one of claims 6-8, wherein the index file is a file stored in a hard disk; or, the index file is a file written into the memory.
10. The apparatus of any of claims 6-8, wherein the processing module is further configured to:
scanning the root directory folder;
and when the index file is not included in the root directory folder, creating the index file.
11. An electronic device, the electronic device comprising:
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 as claimed in any one of claims 1-5.
12. A computer readable storage medium having instructions stored thereon, which when executed by a processor of an electronic device, cause the electronic device to perform the method of determining a folder size as claimed in any one of claims 1-5.
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 CN113722279A (en) 2021-11-30
CN113722279B true 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
CN113722279A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN109492053B (en) Method and device for accessing data
WO2020224544A1 (en) Address selection method and apparatus, and computer readable storage medium
CN110287170B (en) Database upgrading method, state data calling method, device and storage medium
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN112395305A (en) SQL statement analysis method and device, electronic equipment and storage medium
CN113722279B (en) Method, device, equipment and storage medium for determining size of folder
CN111176705B (en) Feature library upgrading method and device
CN110502317A (en) A kind of method and apparatus of transaction management
CN113127357B (en) Unit test method, apparatus, device, storage medium, and program product
CN116010345A (en) Method, device and equipment for realizing table service scheme of flow batch integrated data lake
CN115129598A (en) Risk detection method, device, system and medium for SQL (structured query language) statements
CN114625372A (en) Automatic component compiling method and device, computer equipment and storage medium
CN111796845B (en) Database upgrading method, state data query method, device and storage medium
CN110333883B (en) Method and device for updating persistent data
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN113110846A (en) Method and device for acquiring environment variable
CN112783574A (en) Application program development method, device, equipment and storage medium
CN112114811A (en) Compiling method, device and equipment
CN113127438A (en) Method, apparatus, server and medium for storing data
CN114327271B (en) Lifecycle management method, apparatus, device and storage medium
CN110750268B (en) File cleaning method and device, computer readable storage medium and electronic equipment
CN113010182B (en) Method and device for generating upgrade file and electronic equipment
CN113642295B (en) Page typesetting method, device and computer program product
US11947958B2 (en) Method, device, and program product for managing object in software development project
CN116595010A (en) Database index optimization method, storage medium 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