Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
Everything works except this part
import os import sys #path to file from the first argument (no checking) fname = sys.argv #fname = r'E:\\TV Shows\\How I Met Your Mother\\Season 6\\How.I.Met.Your.Mother.S06E18.720p.HDTV.X264-DIMENSION.mkv' print fname # Now split the path to the directory and the bare name (better to say it # splits the last element of the path and it does not care whether it is # a file name or a subdirectory name. path, barename = os.path.split(fname) print path print barename parent = os.path.normpath(os.path.join(path, '..')) print "parent directory:", parent # Create file, delete and recreate it if it exists. This will # change the date modified status of the Show Name folder # so you can view your show list by date order. logname = os.path.join(parent, 'DateMarker.log') if os.path.isfile(logname): os.remove(logname) logfile = open(logname, 'w') logfile.write('Episode ' + fname + ' has been created. This is a marker file, to change the date modified status of the show name.') logfile.close()
if os.path.isfile(logname): os.remove(logname) logfile = open(logname, 'w') logfile.write('Episode ' + fname + ' has been created. This is a marker file, to change the date modified status of the show name.') logfile.close()
|Nmap how to find wich type of socks is this?||4||71|
|Using winfows 7 and 10 download en install MYSQL server from a batch||13||70|
|issue with beginner powershell script.||5||36|
|What is assert.deepEqual?||4||0|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!