Subversion Repositories programming

Compare Revisions

Ignore whitespace Rev 119 → Rev 120

/shell_programs/animesorter.py
79,7 → 79,7
match is a LIST containing type sre.SRE_Match
 
Returns a string (the filename) of the LIST match given as a parameter."""
fname = ''.join(match.string)
fname = match.string
return fname
 
def getmatchnames(matches):
103,6 → 103,15
destfile = os.path.join(todir, file)
 
try:
if not os.path.isdir(dstdir):
os.makedirs(dstdir)
except:
return False
 
if os.path.exists(destfile):
return False
 
try:
shutil.move(fromfile, destfile)
except:
return False