Skip to main content

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


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)

Uploaded Source

Built Distribution

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

wixok_folder-25.8.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for wixok_folder-25.8.2.tar.gz
Algorithm Hash digest
SHA256 5d1ea31f02d2dac009b93aba2d9e6fbed8899aa96803777918cbea2c25efdb14
MD5 5e34a4393cfdc6708c8b5de15ac7c986
BLAKE2b-256 da0902fc69a61ae9d952644a7d7ab8d86bfef3c6481e449c2c1c2629b5377166

See more details on using hashes here.

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

Hashes for wixok_folder-25.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 813bd3752ff57934abaeed2a392b228e4c48f421d887881176cbe9abbd64bdd0
MD5 59989f14c3d04fb698ce1980d5e836f7
BLAKE2b-256 b6b20f54003a3de10173c2f3f364a8f3c598930cac7f75b7184f1c77cca53a37

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