Socket
Book a DemoInstallSign in
Socket

list-files-with-timestats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-files-with-timestats

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

pipPyPI
Version
0.11
Maintainers
1

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)
    

Keywords

list

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.