Skip to main content

A custom filesystem for pyfilesystem2 that allows mounting files from other filesystems.

Project description

fs.filefs: Custom filesystem for pyfilesystem2

PyPI version LICENSE

This package provides FileFS, a custom filesystem for pyfilesystem2 that allows you to mount files from other filesystems.

Installation

pip install fs.filefs

Usage Example

from fs.osfs import OSFS
from fs.filefs import FileFS

image_fs = OSFS("~/images")
file_fs = FileFS()
file_fs.add_file("screenshot_1.png", image_fs)
file_fs.add_file("screenshot_2.png", image_fs, name="img_2.png")

print(file_fs.listdir("/"))  # ['screenshot_1.png', 'img_2.png']

Develpment

# Install package in editable mode
pip install -e .

# Run tests
python -m unittest discover -s tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fs_filefs-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fs_filefs-1.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fs_filefs-1.0.2.tar.gz.

File metadata

  • Download URL: fs_filefs-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for fs_filefs-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8e858d668d7c7a6cdbad4626fdc0c0fcf02a5ecbec50d28c4b58d24bc7616d4b
MD5 c739860237fd9e9f7c811a873aefd71f
BLAKE2b-256 c2fd8f7d2a2a1263a36f2f1a0c338e1dd75a714e4ec09586f2e9832bb5e95c48

See more details on using hashes here.

File details

Details for the file fs_filefs-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fs_filefs-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for fs_filefs-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0e36b2719726c757178d85823f0d43640fc5110798ffdf2aa27ef1382daacc
MD5 8be47e215b81af22e2b7af1c12d881e5
BLAKE2b-256 1dd180dce807c3a5019dcbb79bf3bc3324c91306fdc5171424009d87cf13d23a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page