Simple Python package for folder operations.
Project description
folder
Simple Python package for folder operations.
Install
pip install wixok.folder
Usage
from wixok.folder import Folder
# Check if a folder exists
exists = Folder.exists("/tmp/myfolder")
print(exists) # True
# Create a folder
success = Folder.create("/tmp", "myfolder")
print(success) # True
# Delete the folder
deleted = Folder.delete("/tmp/myfolder")
print(deleted) # True
# Get the current working directory
cwd = Folder.cwd()
print(cwd) # e.g., '/home/user/project'
Methods
| Method | Description | Returns |
|---|---|---|
Folder.exists(path) |
Check if a folder exists and is a directory | bool |
Folder.create(path, name="") |
Create a folder at the given path (and optional subfolder name) | bool |
Folder.delete(path) |
Delete a folder at the given path | bool |
Folder.cwd() |
Get the current working directory path | str |
Debug Mode
folder.debug = True # Enable error messages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wixok_folder-25.8.2.tar.gz
(4.0 kB
view details)
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 wixok_folder-25.8.2.tar.gz.
File metadata
- Download URL: wixok_folder-25.8.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d1ea31f02d2dac009b93aba2d9e6fbed8899aa96803777918cbea2c25efdb14
|
|
| MD5 |
5e34a4393cfdc6708c8b5de15ac7c986
|
|
| BLAKE2b-256 |
da0902fc69a61ae9d952644a7d7ab8d86bfef3c6481e449c2c1c2629b5377166
|
File details
Details for the file wixok_folder-25.8.2-py3-none-any.whl.
File metadata
- Download URL: wixok_folder-25.8.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
813bd3752ff57934abaeed2a392b228e4c48f421d887881176cbe9abbd64bdd0
|
|
| MD5 |
59989f14c3d04fb698ce1980d5e836f7
|
|
| BLAKE2b-256 |
b6b20f54003a3de10173c2f3f364a8f3c598930cac7f75b7184f1c77cca53a37
|