Skip to main content

List files recursively, limit the depth of the subdirs, and get the creation and modification times

Project description

List files recursively, limit the depth of the subdirs, and get the creation and modification times

# Tested on windows 
$pip install list-files-with-timestats
from list_files_with_timestats import get_folder_file_complete_path,get_folder_file_complete_path_limit_subdirs
folders = [r"C:\Program Files\NVIDIA Corporation"]
allfi = get_folder_file_complete_path_limit_subdirs(
    folders, maxsubdirs=1, withdate=True
) # calling this function, you can limit the depth of the subdirs, and get the creation and modification times
for a in allfi:
    print(a)


# Listing the files with all subdirs 
fi = get_folder_file_complete_path(folders=[r'C:\Users\Gamer\anaconda3\bin',r"C:\yolovtest"])
for file in fi[:10]:
    print(file.folder, file.file, file.path, file.ext)
    

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

list_files_with_timestats-0.11.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

list_files_with_timestats-0.11-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file list_files_with_timestats-0.11.tar.gz.

File metadata

File hashes

Hashes for list_files_with_timestats-0.11.tar.gz
Algorithm Hash digest
SHA256 10bf6afffd75c8a550f01368e05c72944f4e9f442232a43dfdbf1edcf05dc990
MD5 be82c8aa353e2de37ce9c6ed4b83da32
BLAKE2b-256 e0e4f4ed427a6d1375ec965d37b7f13369604ba3196fce6d8e7fa1a3a82b5336

See more details on using hashes here.

File details

Details for the file list_files_with_timestats-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for list_files_with_timestats-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d2f6133ce1565d8d6f120c57bac2cdd76b549b62a6f14ddddc9acd624d60944d
MD5 dc3487443f55ad7a680adcceae2a8f58
BLAKE2b-256 c003780554164f05c85a4bcab31f60739449196960f3d2c4b88f2804441fde4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page