List files recursively, limit the depth of the subdirs, and get the creation and modification times
Project description
Check on what operating system the script is running
# 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
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
Built Distribution
Close
Hashes for list_files_with_timestats-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda4b390059b902f6b0380db91d63e470d5e94775c9d84878de2bb9ff65b6cf5 |
|
MD5 | fc1766c432559a1b7ad5fd579b1dc84f |
|
BLAKE2b-256 | 0e03897e514452e42db6a2d24bd1b98562d96e36b1cf29016d84bbfc468a78b8 |
Close
Hashes for list_files_with_timestats-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd39c199e75d1f031ba6604803909ad7a8c96966726a2ee257f5d41a03af682 |
|
MD5 | df989ace4c450adc30a3b31a7eb8adb5 |
|
BLAKE2b-256 | 2c58d36bceb26b905cb38f81dc650bb76d89dc85995698cb14fbf17a33f25c99 |