Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f=open('volume-rights.txt', 'r')
- for line in f:
- volumeid=line
- path=os.path.dirname('/%/*.txt' %(volumeid))
- filename=os.path.basename(path)
- files = glob.glob('*.txt')
- for file in files:
- with open('%.txt' %(filename), 'w') as result:
- result.write(str(file)+'n')
- result.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement