CPC G06F 16/9017 (2019.01) | 18 Claims |
1. An electronic device, comprising:
a non-volatile storage including a file system;
a volatile memory distinct from the storage; and
a processor,
wherein the memory stores at least one instruction, which when executed, instructs the processor to:
receive a request for access to at least one of a file or a directory stored in a user data region of the file system;
in response to receiving the request, store, in the memory, first information associated with the at least one of the file or the directory stored in the user data region;
display a size of the at least one of the file or the directory using the first information stored in the memory,
determine whether the size of the at least one of the file or the directory is changed;
change the first information stored in the memory, based on the changed size of the at least one of the file or the directory; and
change at least one second information associated with at least one upper directory of the at least one of the file or the directory, based on the changed size of the at least one of the file or the directory,
wherein, when the first information is associated with the file, the first information indicates the size of the file,
wherein, when the first information is associated with the directory, the first information indicates a sum of sizes of all subdirectories included in the directory and sizes of all files included in the directory, and
wherein the at least one second information comprises information indicating a sum of sizes of all subdirectories and all files included in the at least one upper directory.
|