Flysystem is a file storage library for PHP. It provides one interface to interact with many types of filesystems. When you use Flysystem, you're not only protected from vendor lock-in, you'll also have a consistent experience for which ever storage is right for you.
Flysystem is created by Frank de Jonge and https://thephpleague.com/
Python Flysystem is a port of Flysystem for Python
$ pip install flysystem
from flysystem.adapters.local import LocalFilesystemAdapter
from flysystem.filesystem import Filesystem
adapter = LocalFilesystemAdapter(".")
filesystem = Filesystem(adapter)
filesystem.file_exists("/tmp/hello.txt")
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
Special thanks to Frank de Jonge and Flysystem's maintainers.
The MIT License (MIT). Please see License File for more information.