MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / createHardLink

Method createHardLink

Libraries/FileSystem/FileSystem.cpp:591–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591SC::Result SC::FileSystem::createHardLink(StringSpan sourceFile, StringSpan linkFile)
592{
593 StringSpan sourceFileNative, linkFileNative;
594 SC_TRY(convert(sourceFile, fileFormatBuffer1, fileTransportBuffer1, &sourceFileNative));
595 SC_TRY(convert(linkFile, fileFormatBuffer2, fileTransportBuffer2, &linkFileNative));
596 SC_TRY(FileSystem::Operations::createHardLink(sourceFileNative, linkFileNative));
597 return Result(true);
598}
599
600bool SC::FileSystem::exists(StringSpan fileOrDirectory)
601{

Callers 1

hardLinkMethod · 0.80

Calls 1

ResultClass · 0.50

Tested by 1

hardLinkMethod · 0.64