[go: up one dir, main page]

Menu

[96b3e1]: / fileops.h  Maximize  Restore  History

Download this file

24 lines (20 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2010 Steven Lamerton
// License: GNU GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
/////////////////////////////////////////////////////////////////////////////////
#include "toucan.h"
#include <wx/string.h>
#include <wx/filename.h>
namespace File{
int Copy(const wxFileName &source, const wxFileName &dest);
int Rename(const wxFileName &source, const wxFileName &dest, bool overwrite);
int Delete(const wxFileName &path, bool recycle, bool ignorero);
//In wxMSW we get the full path and then preprend \\?\ to avoid filename limits
wxString GetLongPath(const wxFileName &path);
}
#ifdef __WXMSW__
DWORD CALLBACK CopyProgressRoutine(LARGE_INTEGER TotalFileSize, LARGE_INTEGER TotalBytesTransferred, LARGE_INTEGER StreamSize,
LARGE_INTEGER StreamBytesTransferred, DWORD dwStreamNumber, DWORD dwCallbackReason,
HANDLE hSourceFile, HANDLE hDestinationFile, LPVOID lpData);
#endif