const wxString& filespec,
int flags = wxDIR_DEFAULT);
+#if wxUSE_LONGLONG
// 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;
wxPATH_MKDIR_FULL = 0x0001 // create directories recursively
};
+#if wxUSE_LONGLONG
// error code of wxFileName::GetSize()
extern wxULongLong wxInvalidSize;
+#endif // wxUSE_LONGLONG
// Filesize
+#if wxUSE_LONGLONG
// 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);
+#endif // wxUSE_LONGLONG
// deprecated methods, don't use any more
// wxDir::GetTotalSize()
// ----------------------------------------------------------------------------
+#if wxUSE_LONGLONG
+
class wxDirTraverserSumSize : public wxDirTraverser
{
public:
return traverser.GetTotalSize();
}
+#endif // wxUSE_LONGLONG
#endif
+#if wxUSE_LONGLONG
wxULongLong wxInvalidSize = (unsigned)-1;
+#endif // wxUSE_LONGLONG
// ----------------------------------------------------------------------------
// file size functions
// ----------------------------------------------------------------------------
+#if wxUSE_LONGLONG
+
/* static */
wxULongLong wxFileName::GetSize(const wxString &filename)
{
return GetHumanReadableSize(GetSize(), failmsg, precision);
}
+#endif // wxUSE_LONGLONG
// ----------------------------------------------------------------------------
// Mac-specific functions