1# File Management 2 3## Introduction 4 5The file management subsystem provides a complete file management solution for OpenHarmony. It provides secure and easy-to-use file access and comprehensive file management capabilities, including: 6 7- A sandbox to ensure the least privilege as well as application data security 8- Unified management of user files and streamlined user data access and storage to ensure user data security and purity 9- Access framework to allow applications to access distributed file system files and cloud files as they access local files 10- Sharing of user data and system files across applications and devices 11- System storage management capabilities and basic file system capabilities 12 13**Figure 1** Architecture of the file management subsystem 14![](figures/file_management_architecture.png "file management subsystem architecture") 15 16The file management subsystem provides the file access framework, file sharing framework, and storage management framework for applications. 17 18| Module | Description | 19| ------------ | ------------------------------------------------------------ | 20| File access interface| 1. Provides complete JavaScript APIs to implement basic file access capabilities.<br>2. Provides extension APIs for local files, distributed files, and cloud files.| 21| Storage management | 1. Provides data backup and restore to support system and application data backup and cloning.<br>2. Provides space management capabilities such as application space clearing and statistics, and quota control.<br>3. Provides storage management capabilities such as mount operations, external card management, device management, and multi-user management.| 22| User files | 1. Provides a sandbox to ensure user data security and purity.<br>2. Allows access to user data only through **mediaLibrary**.<br>3. Provides a unified file management framework.<br>4. Supports distributed and device-cloud capabilities.| 23| Application files | 1. Provides a sandbox to ensure the least privilege as well as application data security.<br>2. Supports file sharing between applications, across devices, and in groups.<br>3. Allows applications to access distributed and cloud files as they access local files.| 24| Distributed capabilities | 1. Provides basic cross-device access capabilities and supports distributed access using the same account and temporary access using different accounts.<br>2. Supports device-cloud interaction irrespective of the data locations.<br>3. Supports cross-device hopping, such as application hopping and distributed pasteboard.| 25| Basic file system| 1. Supports local file systems such as ext4, Flash-Friendly File System (F2FS), Extensible File Allocation Table (exFAT), and New Technology File System (NTFS).<br>2. Supports network file systems such as the distributed file system and Network File System (NFS).<br>3. Provides tools related to file systems.| 26 27 28## Repositories Involved 29 30User file management 31 32[filemanagement_user_file_service](https://gitee.com/openharmony/filemanagement_user_file_service) 33 34Application file management 35 36[filemanagement_app_file_service](https://gitee.com/openharmony/filemanagement_app_file_service) 37 38File interface 39 40[filemanagement_file_api](https://gitee.com/openharmony/filemanagement_file_api) 41 42Storage management 43 44[filemanagement_storage_service](https://gitee.com/openharmony/filemanagement_storage_service) 45 46Distributed files 47 48 [filemanagement_dfs_service](https://gitee.com/openharmony/filemanagement_dfs_service) 49