small tweak
This commit is contained in:
@@ -851,6 +851,10 @@ static nn_Exit ncl_fsHandler(nn_FSRequest *req) {
|
|||||||
nn_setError(C, "illegal copy operation");
|
nn_setError(C, "illegal copy operation");
|
||||||
return NN_EBADCALL;
|
return NN_EBADCALL;
|
||||||
}
|
}
|
||||||
|
// matches tmpfs behavior
|
||||||
|
if(ncl_exists(state->vfs, to)) {
|
||||||
|
ncl_removeRecursive(state->vfs, to);
|
||||||
|
}
|
||||||
bool ok = ncl_copyto(state->vfs, from, to);
|
bool ok = ncl_copyto(state->vfs, from, to);
|
||||||
if(ok) {
|
if(ok) {
|
||||||
ncl_removeRecursive(state->vfs, from);
|
ncl_removeRecursive(state->vfs, from);
|
||||||
|
|||||||
Reference in New Issue
Block a user