Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 330 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('/'))), drive)
buf = folder
if tmp!=drive:
while True:
if buf==tmp:
folder = tmp.parent
break
if buf==None: break
buf = buf.parent
tmp.remove()
else:
cnu(args[0])