Skip to main content

Function that finds maximal and minimal sized contents of a directory

Project description

Fcomp - short for file/folder comparison

Function receives the path and analyzes the directory it represents in order to find the files/directories of maximum and minimum sizes that the initial folder contains.

Then returns paths to those files.

Necessary info can be taken from returned dictionary with the use of keys "maxs","mins" and "eq"(if somehow all contents of a directory have equal size).

In case of a path to an empty directory inputted as argument None is returned.

!!!

Usage of backslash in paths should be avoided due to it causing the function to fail (SyntaxError).

Either double backslash or slash should be used instead. Alternatively, the path can be initially inputted as raw, e.g. fcomp(r'C:\Users')

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

filecomp-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

filecomp-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page