No project description provided
Project description
Directory Manager Project
Overview
The Directory Manager Project is a Python extension written in Rust using PyO3. It facilitates efficient interaction with the filesystem, offering capabilities to handle files and directories. The project is cross-platform, compatible with both Unix-like and Windows systems.
Features
- File and Directory Operations: Manage files and directories with functions for reading, writing, moving, and deleting.
- Metadata Retrieval: Fetch file metadata such as last modified time, creation time, size, and read-only status.
- Content Manipulation: Overwrite or append content in files.
- Directory Traversal: Traverse, list, and perform batch operations on directories.
- Custom Python Classes: Includes
File,Directory, andDirectoryManagerclasses, each with specific functionalities.
How to Use (Python)
After installing the Directory Manager, you can use it in Python as follows:
-
Create a Directory Manager Instance:
from dirman import DirectoryManager dm = DirectoryManager('/path/to/directory')
-
File Operations:
- Reading a file:
file = dm.find_file(name="example.txt") content = file.read()
- Writing (overwriting) to a file:
file.write_over("New content")
- Appending to a file:
file.concat("Additional content")
- Reading a file:
-
Get Metadata:
metadata = file.get_metadata() print(metadata['last_modified'], metadata['size'])
-
Directory Operations:
- Moving files:
dm.move_files(name="example.txt",dest_directory_name="another_folder")
- Deleting directories:
dm.delete_directories(name="old_folder")
- Moving files:
Building with Maturin (Rust Source)
Maturin is a build system to build and publish Rust-based Python packages with minimal configuration.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DirMan-0.1.6.tar.gz.
File metadata
- Download URL: DirMan-0.1.6.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bac55c9b1a891b8a9440b44ced207d0f7dfd89bdcbac3c0904fbbaa28062bf5
|
|
| MD5 |
ca3b8c0ac320443eac6e36a9d87a0e31
|
|
| BLAKE2b-256 |
246a63dd0fad7f568e923478d4289247a8044fd764f69e10873fcb3dfe600e1f
|
File details
Details for the file DirMan-0.1.6-cp312-none-win_amd64.whl.
File metadata
- Download URL: DirMan-0.1.6-cp312-none-win_amd64.whl
- Upload date:
- Size: 215.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d5b416593cce720cf4619ad4dd38fd376804ef5ec118e2b7b27781ab1be204
|
|
| MD5 |
0692eca0af50d6023be266397ff98dd3
|
|
| BLAKE2b-256 |
20ac8252311488ec90dd01e1a395880af97c3b4a7d2c09fae54690c191aa7047
|