Skip to main content

File sorting program according to the numbers in the file name.

Project description

Table of contents

General Info

This program checks the numeric values ​​at the end of the file names in the folder and sorts the file names from the smallest number to the larger number.

Technologies

Project is created with:

  • Python 3.8

Setup

To run this project, install it locally using pip:

$ pip install fsorter

How to use Fsorter

from fsorter import fsorter

test_list = fsorter.filesort('file path',['extensions'])
 

Example

from fsorter import fsorter

test_list = fsorter.filesort('C://Windows//Users//test_user//Desktop//test_folder',['jpg','png','tiff','pdf','pptx','xlsx'])
 

Example 2

You can make an example like below to see how it sorts files in console output.


from fsorter import fsorter

dir = 'test'
test = fsorter.fileSort(dir)

for k in test:
    print(k)
 

Note

If the file extensions that need to be sorted into the Fsorter program are not entered as parameters, by default they are ['.jpg', '.png', '.jpeg', '.tif', '.tiff', '.nii', '.JPG', '. JPEG', '.TIFF', '.TIF', '.NII'] extensions sort.

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

fsorter-2.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

fsorter-2.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file fsorter-2.4.tar.gz.

File metadata

  • Download URL: fsorter-2.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for fsorter-2.4.tar.gz
Algorithm Hash digest
SHA256 a9eb1236bcb10667bd5f5dea27c9578928eecc1af11779eb7d98ce17f79ebf93
MD5 81ac246184d96664022eca005dafbd1f
BLAKE2b-256 85d0ccaa20ab8c5f870605d1d020e9fd70c5e167c773ac4b186a63cd247014ae

See more details on using hashes here.

File details

Details for the file fsorter-2.4-py3-none-any.whl.

File metadata

  • Download URL: fsorter-2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for fsorter-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 df2671470511ae9f22996cd266e477ec51036895a6cded0c3370276e09698a9a
MD5 91a4af3d03600a8f5d02439e2c05b2a8
BLAKE2b-256 c6084fe8a45cf7b89d051e3c38068be6decc736e8be51110da8380c48f1d546a

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