Frontend created and rewritten a few times, with some backend fixes #1
|
@ -44,7 +44,10 @@ class Rm(ControlBase):
|
||||||
root = config.config.path
|
root = config.config.path
|
||||||
sel = [root / filename.sanitize(p) for p in self.sel]
|
sel = [root / filename.sanitize(p) for p in self.sel]
|
||||||
for p in sel:
|
for p in sel:
|
||||||
shutil.rmtree(p, ignore_errors=True)
|
if p.is_dir():
|
||||||
|
shutil.rmtree(p, ignore_errors=True)
|
||||||
|
else:
|
||||||
|
p.unlink()
|
||||||
|
|
||||||
|
|
||||||
class Mv(ControlBase):
|
class Mv(ControlBase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user