Skip to main content

Module Setup


git clone https://github.com/m-zayan/fdir.git
Unzip file then open it
Open terminal (Linux) or cmd (Windows command prompt)
Type python setup.py build && python setup.py install

Modes


1 - ./ Dirctories (Folders)
2 - . Files
3 - .* Files with specific extension (eg : .csv or .pdf)
4 - // Files and Directories

Module Functions


listdir(str path,str mode)

The Function takes two arguments path and mode (1 , 2 , 3 or 4)
return List of pathes from given path

Ex


import fdir
pathes_list = fdir.listdir(path,'./') # return path of all folders at the current directory as same as (os.listdir)

itrAll(list paths,str mode)

The Function takes two arguments list of paths and mode (1 , 2 , 3 or 4)
return dictionary (str key,list paths)

Ex


import fdir
sub_files = fdir.itrAll(pathes_list,'./') # return paths of all folders for each path at list

itrDict(dict paths,str mode)

The Function takes two arguments dictionary of paths and mode (1 , 2 , 3 or 4)
return dictionary (str key,dict paths)

Ex


import fdir
dict_sub_files = fdir.itrAll(sub_files,'.pdf') # return paths of all pdf files for each list of paths at dictionary

walk(str paths,str mode)

The Function takes two arguments dictionary of paths and mode (1 , 2 , 3 or 4)
Recursively iterating through all files from initial path , Return List of all files which match mode

Ex


import fdir
pdf_files = fdir.walk(path,'.pdf') # return paths of all pdf files.

Metadata

Release files for fdir 1.0

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

Source distribution (sdist)

Source distribution for fdir 1.0
File Size Uploaded Provenance Actions
fdir-1.0.tar.gz 4.3 kB Without provenance Details for fdir-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fdir 1.0
File Interpreter ABI Platform Actions
fdir-1.0-py3.7-linux-x86_64.egg Legacy Egg format - - Details for fdir-1.0-py3.7-linux-x86_64.egg

Total release size: 26.5 kB

Release files / fdir-1.0.tar.gz

Download URL fdir-1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90b4ac59549db32b0eeea0625827bafe9145841d38662c38edd2a81c6e6fed9e
BLAKE2b-256 checksum
How to use checksums
a6b261a4a592f2bca17f01a704cdb8e0e1549676779b7d6e30051c4ac7652c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

Release files / fdir-1.0-py3.7-linux-x86_64.egg

Download URL fdir-1.0-py3.7-linux-x86_64.egg
Size 22.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
8c174473fe6b7b258a10a2cf851dbb53d21644f8ff4e923ec50786ce35f9c416
BLAKE2b-256 checksum
How to use checksums
0c7a1edf2f61ec178586db670cc8f85f073624fc17020cc5f23791a89bb13ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

Security for fdir 1.0

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

1.0 This release

2 release files 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