# List files recursively, limit the depth of the subdirs, and get the creation and modification times
```python
# 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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/list_files_with_timestats",
"name": "list-files-with-timestats",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "list,files,date,subdirs",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e0/e4/f4ed427a6d1375ec965d37b7f13369604ba3196fce6d8e7fa1a3a82b5336/list_files_with_timestats-0.11.tar.gz",
"platform": null,
"description": "\n# List files recursively, limit the depth of the subdirs, and get the creation and modification times\n\n```python\n# Tested on windows \n$pip install list-files-with-timestats\nfrom list_files_with_timestats import get_folder_file_complete_path,get_folder_file_complete_path_limit_subdirs\nfolders = [r\"C:\\Program Files\\NVIDIA Corporation\"]\nallfi = get_folder_file_complete_path_limit_subdirs(\n folders, maxsubdirs=1, withdate=True\n) # calling this function, you can limit the depth of the subdirs, and get the creation and modification times\nfor a in allfi:\n print(a)\n\n\n# Listing the files with all subdirs \nfi = get_folder_file_complete_path(folders=[r'C:\\Users\\Gamer\\anaconda3\\bin',r\"C:\\yolovtest\"])\nfor file in fi[:10]:\n print(file.folder, file.file, file.path, file.ext)\n \n```\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "List files recursively, limit the depth of the subdirs, and get the creation and modification times",
"version": "0.11",
"split_keywords": [
"list",
"files",
"date",
"subdirs"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c003780554164f05c85a4bcab31f60739449196960f3d2c4b88f2804441fde4b",
"md5": "dc3487443f55ad7a680adcceae2a8f58",
"sha256": "d2f6133ce1565d8d6f120c57bac2cdd76b549b62a6f14ddddc9acd624d60944d"
},
"downloads": -1,
"filename": "list_files_with_timestats-0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dc3487443f55ad7a680adcceae2a8f58",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5491,
"upload_time": "2022-12-29T10:48:00",
"upload_time_iso_8601": "2022-12-29T10:48:00.374469Z",
"url": "https://files.pythonhosted.org/packages/c0/03/780554164f05c85a4bcab31f60739449196960f3d2c4b88f2804441fde4b/list_files_with_timestats-0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e0e4f4ed427a6d1375ec965d37b7f13369604ba3196fce6d8e7fa1a3a82b5336",
"md5": "be82c8aa353e2de37ce9c6ed4b83da32",
"sha256": "10bf6afffd75c8a550f01368e05c72944f4e9f442232a43dfdbf1edcf05dc990"
},
"downloads": -1,
"filename": "list_files_with_timestats-0.11.tar.gz",
"has_sig": false,
"md5_digest": "be82c8aa353e2de37ce9c6ed4b83da32",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3855,
"upload_time": "2022-12-29T10:48:01",
"upload_time_iso_8601": "2022-12-29T10:48:01.471985Z",
"url": "https://files.pythonhosted.org/packages/e0/e4/f4ed427a6d1375ec965d37b7f13369604ba3196fce6d8e7fa1a3a82b5336/list_files_with_timestats-0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-29 10:48:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "list_files_with_timestats",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "flatten_everything",
"specs": []
},
{
"name": "list_all_files_recursively",
"specs": []
}
],
"lcname": "list-files-with-timestats"
}