| 905 | } |
| 906 | |
| 907 | U32 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 | |
| 915 | U32 KProcess::renameat(FD olddirfd, BString from, FD newdirfd, BString to) { |
| 916 | BString currentDirectory; |
no outgoing calls
no test coverage detected