The file system provides isolated storage space partitioned by atomic service and user, and also provides a set of APIs for you to manage files. You can call has.getFileSystemManager to obtain the globally unique file system manager. All file system management operations are invoked through FileSystemManager.
Sandbox size
HarmonyOS SDK version 6.1.0(23) or later: The sandbox size is 1 GB.
HarmonyOS SDK version earlier than 6.1.0(23): The sandbox size is 200 MB.
Cleanup mechanism
Temporary files are available only in the current lifecycle. They will be deleted when the atomic service is closed and will be unavailable upon the next cold start.
Impact of full sandbox usage
Currently, the sandbox space of an atomic service is limited. When the sandbox capacity is exhausted, APIs related to file writing will fail to be called because files cannot be written.