Return formatted file and directory information.
Project description
Drive Catalog
Library to recursively read and return file and directory information about drives and folders.
License
drive-catalog is licensed under the GNU Affero General Public License v3.0
Installation
Usage Example
Call the application from the command-line without parameters returns:
> python drive_catalog
usage: main.py [-h] [--version] path [path ...]
main.py: error: the following arguments are required: path
Command-line help is provided by using the help directive:
> python drive_catalog --help
usage: main.py [-h] [--version] path [path ...]
Return formatted file information
positional arguments:
path The path of the drive or folder to process.
optional arguments:
-h, --help show this help message and exit
--version Show the version number and exit.
Call the application from the command-line with path. Note the testdrive folder contains public domain images, audio and video.
> python drive-catalog testdrive/
Path: /Users/bestep/3_Development/drive-catalog/testdrive
Drive Info: {'name': 'testdrive', 'total_files': 28, 'portable_drive': False,
'size': 499963174912, 'free': 62603624448, 'used': 422170857472,
'create_date': datetime.datetime(2020, 6, 25, 16, 39, 43, 436211)}
File Info: [{'name': 'Another Folder', 'size': '224.0B', 'type': '',
'path': '/Users/bestep/3_Development/drive-catalog/testdrive/Another Folder',
'create_date': datetime.datetime(2020, 6, 25, 16, 40, 12, 968011),
'is_directory': True}, {'name': 'Video Files', 'size': '96.0B', 'type': '',
'path': '/Users/bestep/3_Development/drive-catalog/testdrive/Video Files',
'create_date': datetime.datetime(2020, 6, 25, 16, 40, 13, 207838),
'is_directory': True}, {'name': '133-122010-Schnitt_original.pdf',
'size': '1.1MiB', 'type': '', 'path': '/Users/bestep/3_Development/
drive-catalog/testdrive/133-122010-Schnitt_original.pdf',
'create_date': datetime.datetime(2020, 6, 25, 16, 39, 5, 591855),
'is_directory': False}, ...]
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
drive-catalog-0.1.5.tar.gz
(5.1 kB
view hashes)
Built Distributions
drive_catalog-0.1.5-py3.8.egg
(4.9 kB
view hashes)
Close
Hashes for drive_catalog-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec68b73cde8036580d2e3f708e10f6b8ab61e46136d22f663feb5daff5539978 |
|
MD5 | d4d7e680a90fbcc01608736bf24b727d |
|
BLAKE2b-256 | 33ab433b74c4e39f2d971a5150478dfb83cbdeed0c27a871c1d848eedd8c3050 |