Files is a lightweight Swift library that provides a more expressive and user-friendly interface for working with files and directories compared to the native FileManager API. It abstracts common file system operations into an object-oriented model, enabling developers to interact with files and folders using intuitive constructs such as Folder and File types. The library simplifies tasks like reading, writing, moving, renaming, and deleting files while maintaining robust error handling through Swift’s try-catch mechanisms. It also supports recursive traversal of directory structures, making it easy to iterate through file trees for scripting or automation purposes. Designed primarily for Swift scripting and tooling, Files can also be embedded into applications that require file system access. Its implementation is compact and efficient, often contained within a single file, which makes it easy to integrate into projects without adding unnecessary complexity.

Features

  • Object-oriented API for files and folders
  • Simplified read, write, move, and delete operations
  • Recursive and flat directory traversal support
  • Unified error handling using Swift try-catch
  • Easy access to system directories like home and documents
  • Lightweight implementation suitable for scripts and apps

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Files

Files Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Files!

Additional Project Details

Programming Language

Swift

Related Categories

Swift Libraries

Registered

9 hours ago