rmdir
This commit is contained in:
parent
3727dd8b74
commit
b85da9a688
@ -100,12 +100,13 @@ int CryFuse::unlink(const path &path) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
|
||||||
int CryFuse::rmdir(const path &path) {
|
int CryFuse::rmdir(const path &path) {
|
||||||
//printf("rmdir(%s)\n", path.c_str());
|
try {
|
||||||
auto real_path = _device->RootDir() / path;
|
_device->rmdir(path);
|
||||||
int retstat = ::rmdir(real_path.c_str());
|
return 0;
|
||||||
return errcode_map(retstat);
|
} catch(cryfs::CryErrnoException &e) {
|
||||||
|
return -e.getErrno();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user