Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 412 Bytes
argsLen = len(args)
if argsLen==2:
args[1] = args[1][:-1] if args[1][-1]=='/' else args[1]
tmp = folder.traverse(list(reversed(args[1].split('/')[:-1])), drive)
if tmp is None or isinstance(tmp, dFile):
nfd(args[1])
else:
new = args[1].split('/')[-1]
if new!='' and tmp.find(new) is None:
tmp.addFolder(dFolder(new,tmp))
else:
print "%s: cannot create directory"%(args[1])
else:
cnu(args[0])
Jump to Line
Something went wrong with that request. Please try again.