US 11,868,401 B2
Electronic device and method for acquiring size of file or directory stored in file system
Jongwoo Hong, Gyeonggi-do (KR); Sungjong Seo, Gyeonggi-do (KR); Sunghwan Yun, Gyeonggi-do (KR); Kitae Lee, Gyeonggi-do (KR); and Woojoong Lee, Gyeonggi-do (KR)
Assigned to Samsung Electronics Co., Ltd
Filed by Samsung Electronics Co., Ltd., Gyeonggi-do (KR)
Filed on Feb. 28, 2022, as Appl. No. 17/682,788.
Application 17/682,788 is a continuation of application No. PCT/KR2020/011545, filed on Aug. 28, 2020.
Claims priority of application No. 10-2019-0106527 (KR), filed on Aug. 29, 2019.
Prior Publication US 2022/0179907 A1, Jun. 9, 2022
Int. Cl. G06F 7/00 (2006.01); G06F 16/901 (2019.01)
CPC G06F 16/9017 (2019.01) 18 Claims
OG exemplary drawing
 
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.