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
8 Monitoring Tools in One APM. Install in 5 Minutes. Icon
8 Monitoring Tools in One APM. Install in 5 Minutes.

Errors, performance, logs, uptime, hosts, anomalies, dashboards, and check-ins. One interface.

AppSignal works out of the box for Ruby, Elixir, Node.js, Python, and more. 30-day free trial, no credit card required.
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

7 hours ago