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
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
File details
Details for the file list_files_with_timestats-0.11.tar.gz
.
File metadata
- Download URL: list_files_with_timestats-0.11.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10bf6afffd75c8a550f01368e05c72944f4e9f442232a43dfdbf1edcf05dc990 |
|
MD5 | be82c8aa353e2de37ce9c6ed4b83da32 |
|
BLAKE2b-256 | e0e4f4ed427a6d1375ec965d37b7f13369604ba3196fce6d8e7fa1a3a82b5336 |
File details
Details for the file list_files_with_timestats-0.11-py3-none-any.whl
.
File metadata
- Download URL: list_files_with_timestats-0.11-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2f6133ce1565d8d6f120c57bac2cdd76b549b62a6f14ddddc9acd624d60944d |
|
MD5 | dc3487443f55ad7a680adcceae2a8f58 |
|
BLAKE2b-256 | c003780554164f05c85a4bcab31f60739449196960f3d2c4b88f2804441fde4b |