recursively search folders for files and compare

W Toku Opublikowano Jan 7, 2014 Płatność przy odbiorze
W Toku Płatność przy odbiorze

I need a quick python script that looks through a folder structure and compares folders and outputs the differences

please comment the code so i can learn from this better.. my use of [login to view URL] and [login to view URL] is poor :-(

this is how the structure looks (eg only) :

c:\Layer Files\

c:\Layer Files\Transport\

c:\Layer Files\Transport\[login to view URL]

c:\Layer Files\Transport\[login to view URL]

c:\Layer Files\Transport\[login to view URL]

c:\Layer Files\Transport\BUS\

c:\Layer Files\Transport\10.2 Dev\[login to view URL]

c:\Layer Files\Transport\10.2 Dev\[login to view URL]

So recursively compare the Folder contents of "Transport" folder with the child folder "10.2 Dev " below it

Output a txt file of full .lyr file name and path) of .lyr files that exist in the "Transport" folder but not the child "DEV 10.2" folder that sits below it. Also a count of .lyr files in parent and in child folder "10.2 Dev"

please see attached for more info.

eg if you look in Layer Files\Catchments and Hydrology you will find "Comprehensive [login to view URL]" but if you look in Layer Files\Catchments and Hydrology\10.2 DEV its missing. so output this file name.

Thanks Steve

Python

Numer ID Projektu: #5296530

O projekcie

11 ofert Zdalny projekt Aktywny Jan 9, 2014

11 freelancerów złożyło ofertę za $45 w tym projekcie

anuyadav1

hello i am very well comfortable and experienced with os module , i can do this task in no time . and also provide you commented script . thank you

$30 USD w ciągu 1 dnia
(59 Oceny)
5.9
PraveshKoirala

Hello mate! While I do not really know whether you already have the working code and simply wish to see others write the same so that you may learn from it OR you do not have the working code... both is fine I guess. Więcej

$30 USD w ciągu 1 dnia
(8 Oceny)
4.6
rakib062

Hi, I am a graduate in CS and working as a Python programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com involving directory and file parsing. I assure you of clean Więcej

$30 USD w ciągu 1 dnia
(5 Oceny)
3.1
slbonny

Hello, Your job seems to be an interesting one, and I'm fully sure I can do it in a little time. I've done similar things in python previously for my personal requirements, so you can trust me on this one. I can sen Więcej

$25 USD w ciągu 1 dnia
(1 Ocena)
3.2
Venky117

A proposal has not yet been provided

$50 USD w ciągu 1 dnia
(11 Oceny)
3.5
georgvogelhuber

I've got 5 years of python experience and written some similar tools before. Let me know if you've got additional requirements for creating some stats about the layer-files or folder-structure. I'm an expert in statist Więcej

$25 USD w ciągu 2 dni
(4 Oceny)
3.0
cplaiasu

Hello, It's easy to do, but, unfortunately, it's late for me (00:55) and I can't complete it now, but tomorrow you'll have the script. I can do this python script for you. I've created a few web scrap scripts in py Więcej

$20 USD w ciągu 1 dnia
(3 Oceny)
2.1
bogdanpeschir

Hello, Having extensive Python experience I can deliver this project very fast. If needed I can provide you an executable file so you don\'t have to install python on the machine.

$15 USD w ciągu 1 dnia
(1 Ocena)
1.3