Lines Matching defs:nsFileSpec

58 #include "nsFileSpec.h"
224 nsFileSpec dstDirSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\p");
227 nsFileSpec havenSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\pG'day");
561 // Macintosh nsFileSpec implementation
565 nsFileSpec::nsFileSpec()
568 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
573 nsFileSpec::nsFileSpec(const FSSpec& inSpec, PRBool resolveAlias)
578 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
587 void nsFileSpec::operator = (const FSSpec& inSpec)
595 nsFileSpec::nsFileSpec(const nsFileSpec& inSpec)
600 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
604 nsFileSpec::nsFileSpec(const char* inNativePathString, PRBool inCreateDirs)
607 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
618 } // nsFileSpec::nsFileSpec
621 nsFileSpec::nsFileSpec(const nsString& inNativePathString, PRBool inCreateDirs)
624 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
634 } // nsFileSpec::nsFileSpec
637 nsFileSpec::nsFileSpec(short vRefNum, long parID, ConstStr255Param fileName, PRBool resolveAlias)
640 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
653 nsFileSpec::nsFileSpec(const nsFilePath& inPath)
656 // NS_ASSERTION(0, "nsFileSpec is unsupported - use nsIFile!");
661 void nsFileSpec::operator = (const char* inString)
673 } // nsFileSpec::operator =
676 void nsFileSpec::operator = (const nsFileSpec& inSpec)
688 } // nsFileSpec::operator =
691 void nsFileSpec::operator = (const nsFilePath& inPath)
695 } // nsFileSpec::operator =
698 inline void nsFileSpec::Clear()
709 PRBool nsFileSpec::Exists() const
715 } // nsFileSpec::Exists()
718 void nsFileSpec::GetModDate(TimeStamp& outStamp) const
726 } // nsFileSpec::GetModDate
729 PRUint32 nsFileSpec::GetFileSize() const
736 } // nsFileSpec::GetFileSize
739 void nsFileSpec::SetLeafName(const char* inLeafName)
758 } // nsFileSpec::SetLeafName
761 char* nsFileSpec::GetLeafName() const
769 } // nsFileSpec::GetLeafName
772 void nsFileSpec::MakeAliasSafe()
777 } // nsFileSpec::MakeAliasSafe
780 void nsFileSpec::MakeUnique(ConstStr255Param inSuggestedLeafName)
788 } // nsFileSpec::MakeUnique
791 PRBool nsFileSpec::IsFile() const
797 } // nsFileSpec::IsFile
800 PRBool nsFileSpec::IsDirectory() const
806 } // nsFileSpec::IsDirectory
809 PRBool nsFileSpec::IsHidden() const
820 } // nsFileSpec::IsHidden
823 PRBool nsFileSpec::IsSymlink() const
834 } // nsFileSpec::IsSymlink
837 nsresult nsFileSpec::ResolveSymlink(PRBool& wasAliased)
851 } // nsFileSpec::ResolveSymlink
854 void nsFileSpec::GetParent(nsFileSpec& outSpec) const
859 } // nsFileSpec::GetParent
862 void nsFileSpec::operator += (const char* inRelativePath)
873 NS_WARNING("trying to append to a bad nsFileSpec");
908 } // nsFileSpec::operator +=
911 void nsFileSpec::CreateDirectory(int /* unix mode */)
922 } // nsFileSpec::CreateDirectory
925 void nsFileSpec::Delete(PRBool inRecursive) const
930 nsresult& mutableError = const_cast<nsFileSpec*>(this)->mError;
947 } // nsFileSpec::Delete
950 void nsFileSpec::RecursiveCopy(nsFileSpec newDir) const
962 nsFileSpec& child = (nsFileSpec&)i;
966 nsFileSpec tmpDirSpec(newDir);
982 nsFileSpec& filePath = (nsFileSpec&) *this;
991 } // nsFileSpec::RecursiveCopy
994 nsresult nsFileSpec::Truncate(PRInt32 aNewLength) const
1018 } // nsFileSpec::Truncate
1021 nsresult nsFileSpec::Rename(const char* inNewName)
1035 } // nsFileSpec::Rename
1038 nsresult nsFileSpec::CopyToDir(const nsFileSpec& newParentDir) const
1055 } // nsFileSpec::CopyToDir
1058 nsresult nsFileSpec::MoveToDir(const nsFileSpec& newParentDir)
1077 } // nsFileSpec::MoveToDir
1080 nsresult nsFileSpec::Execute(const char* /*args - how can this be cross-platform? problem! */ ) const
1099 } // nsFileSpec::Execute
1102 OSErr nsFileSpec::GetCatInfo(CInfoPBRec& outInfo) const
1110 dipb->ioNamePtr = const_cast<nsFileSpec*>(this)->mSpec.name;
1112 } // nsFileSpec::GetCatInfo()
1115 OSErr nsFileSpec::SetFileTypeAndCreator(OSType type, OSType creator)
1129 OSErr nsFileSpec::GetFileTypeAndCreator(OSType* type, OSType* creator)
1142 PRInt64 nsFileSpec::GetDiskSpaceAvailable() const
1170 } // nsFileSpec::GetDiskSpace()
1173 const char* nsFileSpec::GetCString() const
1177 // cached and freed by the nsFileSpec destructor, so do not delete (or free) it.
1184 const_cast<nsFileSpec*>(this)->mPath = path; // operator =() copies the string!!!
1187 const_cast<nsFileSpec*>(this)->mError = NS_ERROR_OUT_OF_MEMORY;
1218 // Invoke operator = (const nsFileSpec&) to do the rest.
1247 nsFilePath::nsFilePath(const nsFileSpec& inSpec)
1261 void nsFilePath::operator = (const nsFileSpec& inSpec)
1334 nsFileURL::nsFileURL(const nsFileSpec& inOther)
1348 void nsFileURL::operator = (const nsFileSpec& inOther)
1389 const nsFileSpec& inDirectory
1405 FSSpec& currentSpec = mCurrent.nsFileSpec::operator FSSpec&();
1424 FSSpec& currentSpec = mCurrent.nsFileSpec::operator FSSpec&();