File and path manager package
Project description
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))
True
<InvalidFile>
dirExists
Raise: <InvalidDir>
from fileUts import dirExists
add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"
print(dirExists(add1))
print(dirExists(add2))
<InvalidDir>
True
getFileExtenssion
Raise: <InvalidFile>
from fileUts import getFileExtenssion
add1 = "c:/mydir/myfile.ext"
add2 = "c:/mydir"
print(getFileExtenssion(add1))
print(getFileExtenssion(add2))
'ext'
<InvalidFile>
Change Log
0.0.1 (2022-10-30)
- First Release
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
fileUts-0.0.1.tar.gz
(3.7 kB
view hashes)