fix trash_move
this bug prevents using jupyter* in research environments where file systems aren't always local e.g. https://github.com/jupyterlab/jupyterlab/issues/5781 and our own use at https://cri.uchicago.edu/ cc @annawoodard
This commit is contained in:
parent
1d1b8755a9
commit
b6cb3653f8
|
@ -112,7 +112,8 @@ def trash_move(src, dst, topdir=None):
|
|||
|
||||
with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f:
|
||||
f.write(info_for(src, topdir))
|
||||
os.rename(src, op.join(filespath, destname))
|
||||
shutil.copy(src, op.join(filespath, destname))
|
||||
os.remove(src)
|
||||
|
||||
|
||||
def find_mount_point(path):
|
||||
|
|
Loading…
Reference in New Issue