git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47316
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxString& filespec,
int flags = wxDIR_DEFAULT);
const wxString& filespec,
int flags = wxDIR_DEFAULT);
// returns the size of all directories recursively found in given path
static wxULongLong GetTotalSize(const wxString &dir, wxArrayString *filesSkipped = NULL);
// returns the size of all directories recursively found in given path
static wxULongLong GetTotalSize(const wxString &dir, wxArrayString *filesSkipped = NULL);
+#endif // wxUSE_LONGLONG
private:
friend class wxDirData;
private:
friend class wxDirData;
wxPATH_MKDIR_FULL = 0x0001 // create directories recursively
};
wxPATH_MKDIR_FULL = 0x0001 // create directories recursively
};
// error code of wxFileName::GetSize()
extern wxULongLong wxInvalidSize;
// error code of wxFileName::GetSize()
extern wxULongLong wxInvalidSize;
+#endif // wxUSE_LONGLONG
// returns the size of the given filename
wxULongLong GetSize() const;
static wxULongLong GetSize(const wxString &file);
// returns the size of the given filename
wxULongLong GetSize() const;
static wxULongLong GetSize(const wxString &file);
static wxString GetHumanReadableSize(const wxULongLong &sz,
const wxString &nullsize = wxGetTranslation(_T("Not available")),
int precision = 1);
static wxString GetHumanReadableSize(const wxULongLong &sz,
const wxString &nullsize = wxGetTranslation(_T("Not available")),
int precision = 1);
+#endif // wxUSE_LONGLONG
// deprecated methods, don't use any more
// deprecated methods, don't use any more
// wxDir::GetTotalSize()
// ----------------------------------------------------------------------------
// wxDir::GetTotalSize()
// ----------------------------------------------------------------------------
class wxDirTraverserSumSize : public wxDirTraverser
{
public:
class wxDirTraverserSumSize : public wxDirTraverser
{
public:
return traverser.GetTotalSize();
}
return traverser.GetTotalSize();
}
+#endif // wxUSE_LONGLONG
wxULongLong wxInvalidSize = (unsigned)-1;
wxULongLong wxInvalidSize = (unsigned)-1;
+#endif // wxUSE_LONGLONG
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// file size functions
// ----------------------------------------------------------------------------
// file size functions
// ----------------------------------------------------------------------------
/* static */
wxULongLong wxFileName::GetSize(const wxString &filename)
{
/* static */
wxULongLong wxFileName::GetSize(const wxString &filename)
{
return GetHumanReadableSize(GetSize(), failmsg, precision);
}
return GetHumanReadableSize(GetSize(), failmsg, precision);
}
+#endif // wxUSE_LONGLONG
// ----------------------------------------------------------------------------
// Mac-specific functions
// ----------------------------------------------------------------------------
// Mac-specific functions