Sep-24-2021, 11:44 AM
(This post was last modified: Sep-24-2021, 01:13 PM by Yoriz.
Edit Reason: Removed unnecessary quote of previous post
)
Awesome, thanks! Say I wanted to print the last 20 file paths from separate directories. For example, my setup would be:
(r'\\directory\asset1\asset1_runfile')
(r'\\directory\asset2\asset2_runfile')
(r'\\directory\asset3\asset3_runfile')
(r'\\directory\asset4\asset4_runfile')
How would I go about printing the last 20 file names of each "asset" without writing the same code with that slight variation over and over?
(r'\\directory\asset1\asset1_runfile')
(r'\\directory\asset2\asset2_runfile')
(r'\\directory\asset3\asset3_runfile')
(r'\\directory\asset4\asset4_runfile')
How would I go about printing the last 20 file names of each "asset" without writing the same code with that slight variation over and over?