void DesuraJSUploadInfo::exploreMcf(gcRefPtr<UserCore::Misc::UploadInfoThreadI> upload) { const char* file = upload->getFile(); if (file) { UTIL::FS::Path path(file, "", true); #ifdef WIN32 ShellExecuteA(nullptr, "explore" , path.getFolderPath().c_str(), nullptr, nullptr, SW_SHOWNORMAL); #else UTIL::LIN::launchFolder(path.getFolderPath().c_str()); #endif } }
gcString DesuraJSUploadInfo::getFileName(gcRefPtr<UserCore::Misc::UploadInfoThreadI> upload) { UTIL::FS::Path path = UTIL::FS::PathWithFile(upload->getFile()); return path.getFile().getFile(); }