• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/libs/common/

Lines Matching defs:CPath

245 // CPath implementation
247 CPath::CPath()
252 CPath::CPath(const wxString& filename)
290 CPath::CPath(const CPath& other)
297 CPath CPath::FromUniv(const wxString& path)
301 return CPath(wxConvFile.cMB2WC(fn));
306 wxString CPath::ToUniv(const CPath& path)
318 CPath& CPath::operator=(const CPath& other)
329 bool CPath::operator==(const CPath& other) const
335 bool CPath::operator!=(const CPath& other) const
341 bool CPath::operator<(const CPath& other) const
347 bool CPath::IsOk() const
354 bool CPath::FileExists() const
360 bool CPath::DirExists() const
366 bool CPath::IsDir(EAccess mode) const
381 bool CPath::IsFile(EAccess mode) const
395 wxString CPath::GetRaw() const
397 // Copy as c-strings to ensure that the CPath objects can safely
403 wxString CPath::GetPrintable() const
405 // Copy as c-strings to ensure that the CPath objects can safely
411 wxString CPath::GetExt() const
417 CPath CPath::GetPath() const
419 CPath path;
427 CPath CPath::GetFullName() const
429 CPath path;
438 sint64 CPath::GetFileSize() const
451 bool CPath::IsSameDir(const CPath& other) const
468 CPath CPath::JoinPaths(const CPath& other) const
471 return CPath(other);
473 return CPath(*this);
476 CPath joinedPath;
485 CPath CPath::Cleanup(bool keepSpaces, bool isFAT32) const
487 CPath result;
495 CPath CPath::AddPostfix(const wxString& postfix) const
499 CPath result;
507 CPath CPath::AppendExt(const wxString& ext) const
517 CPath result(*this);
530 CPath CPath::RemoveExt() const
532 CPath result;
540 CPath CPath::RemoveAllExt() const
542 CPath last, current = RemoveExt();
555 bool CPath::StartsWith(const CPath& other) const
580 bool CPath::CloneFile(const CPath& src, const CPath& dst, bool overwrite)
586 bool CPath::RemoveFile(const CPath& file)
592 bool CPath::RenameFile(const CPath& src, const CPath& dst, bool overwrite)
598 bool CPath::BackupFile(const CPath& src, const wxString& appendix)
602 CPath dst = CPath(src.m_filesystem + appendix);
604 if (CPath::CloneFile(src, dst, true)) {
622 bool CPath::RemoveDir(const CPath& file)
628 bool CPath::MakeDir(const CPath& file)
634 bool CPath::FileExists(const wxString& file)
636 return CPath(file).FileExists();
640 bool CPath::DirExists(const wxString& path)
642 return CPath(path).DirExists();
646 sint64 CPath::GetFileSize(const wxString& file)
648 return CPath(file).GetFileSize();
652 time_t CPath::GetModificationTime(const CPath& file)
658 sint64 CPath::GetFreeSpaceAt(const CPath& path)
669 wxString CPath::TruncatePath(size_t length, bool isFilePath) const