yjg30737 / python-file-shuffle

Shuffle files' name with Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-file-shuffle

Shuffle files' name with Python

Setup

pip3 install git+https://github.com/yjg30737/python-file-shuffle.git

Example

from python_file_shuffle import shuffle_file

shuffle_file('src', 'dst')
# src is directory that contains files to shuffle
# dst is directory that shuffled files are supposed to be. The fact that it exists or not doesn't matter.

Result

Original files

image

New files

image

You can clearly see that files' name were modified.

By the way, original files are remained in src directory also.