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.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filecomp-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file filecomp-0.0.3.tar.gz.

File metadata

  • Download URL: filecomp-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.8

File hashes

Hashes for filecomp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d57118380860054305058d1fdd71ee208f6978fa1f47bd4aaf073de02c3632f
MD5 a4f9c730aacaaa56338570e55e6726b2
BLAKE2b-256 b1a7ba6e55e38084465d9f2546d63a51542feb8d291435f5e3c7bf24ddea2e88

See more details on using hashes here.

File details

Details for the file filecomp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: filecomp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.8

File hashes

Hashes for filecomp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2fb4605504412ea19f6c493ad1d1b5ee8933b86a9447847c6a6edc9bc0e560
MD5 51feb093804b18ad78f1843794053a19
BLAKE2b-256 ad2c7f941195bd0fc98328c3efbe8f05028103e4ded38b4b77d6ba130c7a771a

See more details on using hashes here.

Supported by

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