MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / RecordFile

Method RecordFile

FastCopy/CommandLine.cpp:56–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::wstring Command::RecordFile()
57{
58 auto& args = GetCommandArgs();
59 if (args.size() == 1)
60 {
61 return std::filesystem::is_empty(GetLocalDataFolder().data()) ?
62 L"" :
63 std::filesystem::directory_iterator{ GetLocalDataFolder().data() }->path().wstring();
64 }
65 else
66 {
67 auto result = args[1].substr(args[1].find(L"|") + 1);
68 for (int i = 2; i < args.size(); ++i)
69 {
70 result += L" ";
71 result += args[i];
72 }
73 return result.substr(0, result.find_last_not_of(L"/\\ ") + 1);
74 }
75}

Callers 1

normalLaunchMethod · 0.45

Calls 3

sizeMethod · 0.80
dataMethod · 0.80
GetLocalDataFolderFunction · 0.70

Tested by

no test coverage detected