/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Win/ErrorUploader.cpp
43 строки
914 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
/* Copyright 2003-2007 ROBLOX Corporation, All Rights Reserved */ #include "stdafx.h" #undef min #undef max #include "ErrorUploader.h" #include "LogManager.h" #include <boost/iostreams/device/file.hpp> #include <boost/iostreams/stream.hpp> #include <boost/iostreams/copy.hpp> #include <boost/iostreams/concepts.hpp> // source #include "util/http.h" #include "util/StandardOut.h" #ifdef _WIN32 // For mkdir #include <direct.h> #include <io.h> #else #include <sys/stat.h> #include <unistd.h> #include "_FindFirst.h" #endif #include "errno.h" std::string ErrorUploader::MoveRelative(LPCTSTR fileName, std::string path) { ATL::CPath dir = fileName; dir.RemoveFileSpec(); dir.Append(path.c_str()); if (!dir.FileExists()) ::_mkdir(dir); ATL::CPath file = fileName; file.StripPath(); dir.Append(file); if (!::MoveFile(fileName, dir)) ::DeleteFile(fileName); // just in case! return (LPCTSTR) dir; }