MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / rename

Method rename

source/kernel/kprocess.cpp:907–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907U32 KProcess::rename(BString from, BString to) {
908 std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(this->currentDirectory, from, false);
909 if (!node)
910 return -K_ENOENT;
911 BString fullPath = Fs::getFullPath(this->currentDirectory, to);
912 return node->rename(fullPath);
913}
914
915U32 KProcess::renameat(FD olddirfd, BString from, FD newdirfd, BString to) {
916 BString currentDirectory;

Callers 2

syscall_renameFunction · 0.45
renameatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected