Skip to main content

fileUts

Installation

pip install fileUts

Usages


isDir

from fileUts import isDir

add1 = "c:/mydir"
add2 = "c:/mydir/myfile.ext"

print(isDir(add1))
print(isDir(add2))
True
False

isFile

from fileUts import isFile

add1 = "c:/mydir"
add2 = "c:/mydir/myfile.ext"

print(isFile(add1))
print(isFile(add2))
False
True

fileExists

Raise: <InvalidFile>

from fileUts import fileExists

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"

print(fileExists(add1))
print(fileExists(add2)) # raises a <InvalidFile>
True

dirExists

Raise: <InvalidDir>

from fileUts import dirExists

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"

print(dirExists(add1)) # raises a <InvalidDir>
print(dirExists(add2))
True

getFileExtenssion

Raise: <InvalidFile>

from fileUts import getFileExtenssion

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"

print(getFileExtenssion(add1))
print(getFileExtenssion(add2)) # raises a <InvalidFile>
'ext'

createDir

Raise: <InvalidDir>

from fileUts import createDir

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"

print(createDir(add1)) # raises a <InvalidDir>
print(createDir(add2))
True

createDir

Raise: <InvalidDir>

from fileUts import createDir

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir/mydir2/mydir3"

print(createDir(add1)) # raises a <InvalidDir>
print(createDir(add2))
True

moveFiles

Raise: <InvalidDir>

from fileUts import moveFiles

files   = "c:/mydir/myfile.*"
to_addr = "c:/target_dir"

print(moveFiles(files,to_addr))
1

clearDir

Raise: <InvalidDir>

from fileUts import clearDir

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir" 

clearDir(add1) # raises a <InvalidDir>
clearDir(add2)

renameFile

Raise: <InvalidDir>

from fileUts import renameFile

add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir" 

renameFile(add1,'newname.ext')
renameFile(add2,,'newname.ext') # raises a <InvalidFile>

Change Log

0.0.1 (2022-10-30)

  • First Release

0.0.2 (2022-10-30)

  • Raise Fixed

Metadata

Release files for fileUts 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fileUts 0.0.2
File Size Uploaded Provenance Actions
fileUts-0.0.2.tar.gz 4.0 kB Without provenance Details for fileUts-0.0.2.tar.gz

Release files / fileUts-0.0.2.tar.gz

Download URL fileUts-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
568a2e51f06d56183b6a8dcd122f992892d3ce55157dc7a8fbd63b0843bd84d5
BLAKE2b-256 checksum
How to use checksums
aca816368bdc929a8c26aa5322d0076d9ee37ecca7e11180dc24abcb6493c1d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Security for fileUts 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page