Python: Batch file move


I have a single directory with ~179,000 files in it.

All of the files follow this format: - - (I put spaces in for clarity, they don't exist in actual file name).

Most often will be formatted like this: first-last like Bill Gates

Other times it will just be a single word: Pepsi

will ALWAYS be "Fyrt" and it will ALWAYS be present as part of the creating software's tagger.

will also ALWAYS be present and are random from 1 - 7 digits

an example file name is: Free-Lancer-Fyrt-1234567

I want a python script that when placed into the directory will scan all the file names then create and move files into their own folder using the file name up to "Fyrt". So using our example file name from before; Free-Lancer-Fyrt-1234567 the resulting output will be a folder called "Free-Lancer". There will be files that need to go into the same directory for example: Free-Lancer-Fyrt-1234567, Free-Lancer-Fyrt-1234568, Free-Lancer-Fyrt-1234569, Free-Lancer-Fyrt-1234570, will all go into the same "Free-Lancer" directory. The output directory for the folders should be the parent directory, so if the files are in the "Foo" directory our new folders path would be Foo/Free-Lancer.

Skills: Python

See more: python move file, batch python, python script move files, python batch, python batch file move, python move batch move files, word up free lancer, up free lancer, so free lancer, s for free lancer, python free lancer, i need a free lancer, free the lancer, free lancer times, free lancer s, free lancer c++, free lancer and other, clarity free lancer, c free lancer, bill gates, as a free lancer, the free lancer, free lancer software, free lancer c, c++ free lancer

Project ID: #4321393

Awarded to:


Hi. I understand your problem. The description is clear, so I can start working on the Python script.

$100 USD in 2 days
(13 Reviews)

12 freelancers are bidding on average $108 for this job


Do you want it for Windows or Linux/OS X?

$100 USD in 3 days
(19 Reviews)

That is a quite easy project you ask for when you have python skill. I can do it fast and respecting your specification perfectly. Please contact me for more detail. Regard.

$50 USD in 2 days
(3 Reviews)

I can help you solve your problem, I am an experienced python developer, I hope we can work together.

$100 USD in 2 days
(2 Reviews)

Hi, I have got expertise in Python and can write that script for you. Kindly contact me with any further details you have so we can proceed further. Looking forward to hear from you. Warm Regards, Muneeb Ahmad.

$90 USD in 4 days
(1 Review)

Hi, I'd like to work on this task.

$40 USD in 3 days
(1 Review)

Trivial project. Will complete in one day. Thanks!

$239 USD in 1 day
(0 Reviews)

I can write script in Python 3.x according to your requirements.

$55 USD in 1 day
(0 Reviews)

Given my experience with python, I will definitely will be able to it in less then a day.

$49 USD in 1 day
(0 Reviews)

In this straight-forward way your script could be ready in a couple of days. We would design it in a form as to make it able to receive later some configuration parameters and specific rules, to turn it into a kind of More

$100 USD in 2 days
(0 Reviews)

Hi, Veltrod Software services is a global software consulting company specialized in providing Mobile applications, Social media frameworks and eCommerce solutions. Leveraging best-in-class people, processes, and t More

$300 USD in 5 days
(0 Reviews)

Hello! I'm new at but you will be satisfied with my work. Best regards, David Frlic

$45 USD in 2 days
(0 Reviews)

Hi, i can help you whit this. lets get it done right away. ready to start if you are interested.

$100 USD in 65 days
(0 Reviews)

Hi there I'm a Python programmer, using version 3.3 right now. I can do what you want. I've been working on the script and understand what you need (for instance, the file name "Nick-Jones-Fyrt-1234568&quot More

$75 USD in 1 day
(0 Reviews)