How files-community/files works
Files is a Windows file manager. The principal workflow is: a user opens Files, navigates or searches a location, the application resolves and enumerates storage items, then an action performs an operation and the UI presents updated state. Distinct stages include presentation, command dispatch, path/item resolution, provider-specific storage, file operations, and shell integrations. The tree documents multitasking, tags, archives, FTP, previews, Git, dialogs, and Windows integrations; several arrows remain conservative because those callers were not sampled.
Main entry points: App.xaml.cs Files App · CommandManager.cs Command Manager · Actions File Actions · StorageFileExtensions.cs Path Resolution
Components 20
Presentation
- Files App
src/Files.App/App.xaml.cs
Application
- App Contexts
src/Files.App/Data/Contexts - Command Manager
src/Files.App/Data/Commands/Manager/CommandManager.cs - File Actions
src/Files.App/Actions
Storage Providers
- Storage Enumerator
src/Files.App/Utils/Storage/Enumerators/Win32StorageEnumerator.cs - Path Resolution
src/Files.App/Utils/Storage/Helpers/StorageFileExtensions.cs - Storage Abstraction
src/Files.App/Utils/Storage/StorageBaseItems/BaseStorageFolder.cs - Windows Storage
src/Files.App.Storage/Windows/WindowsFolder.cs - FTP Storage
src/Files.App.Storage/Ftp/FtpStorageFolder.cs - Archive Storage
src/Files.App/Utils/Storage/StorageItems/ZipStorageFolder.cs
File Operations
- Archive Operations
src/Files.App/Services/Storage/StorageArchiveService.cs - Stream Adapter
src/Files.Core.Storage/Extensions/StorageExtensions.File.cs
Windows Integrations
- Win32 Storage Helper
src/Files.App/Helpers/Win32/Win32Helper.Storage.cs - Preview Handler
src/Files.App/Utils/Shell/PreviewHandler.cs - Open Dialog
src/Files.App.OpenDialog/FilesOpenDialog.cpp - Save Dialog
src/Files.App.SaveDialog/FilesSaveDialog.cpp
Other components
- User
- Windows Shell
- FTP Server
- Archive Libraries
Connections 15
- User → Files App: opens app
- Files App → App Contexts: loads state
- Files App → Command Manager: dispatches commands
- Command Manager → File Actions: invokes actions
- File Actions → Path Resolution: resolves paths
- Path Resolution → Storage Abstraction: loads items
- Storage Enumerator → Windows Storage: enumerates items
- Windows Storage → Win32 Storage Helper: uses Win32
- FTP Storage → FTP Server: reads and writes
- Archive Storage → Archive Libraries: opens archives
- Archive Operations → Archive Libraries: compresses and extracts
- Stream Adapter → Storage Abstraction: opens streams
- Preview Handler → Windows Shell: hosts previews
- Open Dialog → Windows Shell: opens items
- Save Dialog → Windows Shell: saves items