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
Metadata
Release files for wixok.folder 25.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wixok_folder-25.8.2.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wixok_folder-25.8.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / wixok_folder-25.8.2.tar.gz
| Download URL | wixok_folder-25.8.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d1ea31f02d2dac009b93aba2d9e6fbed8899aa96803777918cbea2c25efdb14
|
|
BLAKE2b-256 checksum How to use checksums |
da0902fc69a61ae9d952644a7d7ab8d86bfef3c6481e449c2c1c2629b5377166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / wixok_folder-25.8.2-py3-none-any.whl
| Download URL | wixok_folder-25.8.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
813bd3752ff57934abaeed2a392b228e4c48f421d887881176cbe9abbd64bdd0
|
|
BLAKE2b-256 checksum How to use checksums |
b6b20f54003a3de10173c2f3f364a8f3c598930cac7f75b7184f1c77cca53a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|