update
After reading other posts in this subforum, I think my question might be better suited to general help, but I can't find the delete or move option. I can leave it here but if some mod wants to move it, that's good too.
Summary
What is the English interpretation of the following snippet
For all the files in oldfiles, find the position of the first colon. Move to the next position, then split it up into parts around every backslash until the end of the string. Then join them together with a forward slash between each part.
Does this just replace backslashes for forward slashes?
What does finding the colon do? Does it only replace slashes after this point?
Background
I am reading through my first ever python script. At work and the file archiving process stopped working and the python people away for a few weeks. I am working on creating a test harness, and running it, but waiting on IT to be allowed to install python.
Thanks for any help. Typing it out probably got me half way to understanding this step
After reading other posts in this subforum, I think my question might be better suited to general help, but I can't find the delete or move option. I can leave it here but if some mod wants to move it, that's good too.
Summary
What is the English interpretation of the following snippet
for f in oldFiles: archFile = '/'.join( f[f.find( ':' )+1:].split( '\\' ) ) zf.write( f, archFile )So far I have this being...
For all the files in oldfiles, find the position of the first colon. Move to the next position, then split it up into parts around every backslash until the end of the string. Then join them together with a forward slash between each part.
Does this just replace backslashes for forward slashes?
What does finding the colon do? Does it only replace slashes after this point?
Background
I am reading through my first ever python script. At work and the file archiving process stopped working and the python people away for a few weeks. I am working on creating a test harness, and running it, but waiting on IT to be allowed to install python.
Thanks for any help. Typing it out probably got me half way to understanding this step