Skip to main content

Утилиты для работы с файловой системой

Project description

fsutils logo

fsutils

Удобная библиотека Python для работы с файловой системой: копирование, перемещение, удаление, резервное копирование и поиск по шаблону.

Установка

Установка из исходников (локально):

git clone https://github.com/your-username/fsutils.git
cd fsutils
pip install -e .

Использование

from fsutils import (
    copy_file, move_file, delete_file, delete_directory,
    create_backup, get_file_size, list_all_files,
    ensure_directory_exists, find_files, find_directories
)
# Копирование
copy_file("example.txt", "copy_example.txt")
# Перемещение
move_file("copy_example.txt", "moved_example.txt")
# Бэкап
create_backup("moved_example.txt", "backup.txt")
# Удаление
delete_file("moved_example.txt")
delete_directory("old_folder", recursive=True)
# Проверка папки
ensure_directory_exists("logs")
# Поиск
print(find_files(".", "*.txt"))
print(find_directories(".", "log*"))

Тестирование

python -m unittest discover tests

Лицензия

BSD 2-Clause License

Copyright (c) 2025, veb-bet

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

vebfs-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

vebfs-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file vebfs-0.1.0.tar.gz.

File metadata

  • Download URL: vebfs-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vebfs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75eb5e439d586310ac5fc7f4849572a5d39e2d3ce87d5e5a8258dca420fdaed3
MD5 6ce739e66feffb749a3db16720f7f6ca
BLAKE2b-256 a09756f115d3478944b4b668c415a833732d505957e71182a68ba666e4969a30

See more details on using hashes here.

File details

Details for the file vebfs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vebfs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vebfs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c36e9433b92ef3449740332204beeb3d000116a6420871adda55f0e62a14d3e
MD5 b8f69d87e7d39bd831f16d3a01cf3053
BLAKE2b-256 2dfc2f2e5a29b4d7bd71b68f2331dcd696bb248543b80c8e1af0df1c2b40055c

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