Skip to main content

fsplus

Safe file system operations for Python — copy, move, create, and delete with path-traversal protection, overwrite confirmation, and checksum verification.

Install

pip install fsplus

Operations

Function Description
copy_file Copy a file with overwrite confirmation
move_file Move a file with checksum verification
create_file Create a new file with content
create_temp_file Create a temporary file
clear_directory Remove all contents of a directory
delete_directory Remove a directory entirely

Usage

from fsplus import copy_file, move_file, delete_directory

# Copy a file
copy_file("/data/report.csv", "/backup/")

# Overwrite requires explicit confirmation
copy_file("/data/report.csv", "/backup/", overwrite=True, required_partial_path="backup")

# Move with automatic checksum verification
move_file("/data/report.csv", "/archive/")

# Rename on the way
move_file("/data/report.csv", "/archive/", new_name="report_2024.csv")

License

MIT

Metadata

Release files for fsplus 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fsplus 1.0.0
File Size Uploaded Provenance
fsplus-1.0.0.tar.gz 38.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fsplus 1.0.0
File Interpreter ABI Platform
fsplus-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.9 kB

Release files / fsplus-1.0.0.tar.gz

Download URL fsplus-1.0.0.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8998a87a6c3480500d8c319f0fe7ab31281f23e81092cd9e2867eacb63a1bbad
BLAKE2b-256 checksum
How to use checksums
934fe815ec89699ed2a86cd59e880346a7f53084b7556b1063c1108f195091b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / fsplus-1.0.0-py3-none-any.whl

Download URL fsplus-1.0.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1656c7adb617e29042c234caf221f01377c6df4f474318d558d5f317461a1c3e
BLAKE2b-256 checksum
How to use checksums
821e9c49c57bac2cc19a32e163caabfc577453b5908904108662d1b7b48e742b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for fsplus 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page