|
From: Emilien K. <cur...@us...> - 2005-01-13 16:00:59
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25781/src Modified Files: FileSystemStandard.cpp Log Message: Racine du FS unix Index: FileSystemStandard.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileSystemStandard.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FileSystemStandard.cpp 3 Jan 2005 18:09:46 -0000 1.6 --- FileSystemStandard.cpp 13 Jan 2005 16:00:45 -0000 1.7 *************** *** 424,428 **** bool FileSystemStandardUnix::IsDirectory(FilePath strPath) { ! if(strPath=="/") return true; else --- 424,428 ---- bool FileSystemStandardUnix::IsDirectory(FilePath strPath) { ! if(strPath=="") return true; else *************** *** 432,445 **** int FileSystemStandardUnix::GetDirectorySystemType(FilePath strPath) { - if(strPath.Last()=='/') - strPath.RemoveLast(); - if(strPath.IsEmpty()) return WXDC_FS_DIRTYPE_MOUNT; ! else if(strPath=="/mnt") return WXDC_FS_DIRTYPE_MOUNT; ! else if(strPath=="/home") return WXDC_FS_DIRTYPE_HOME; ! else if(strPath.GetFileDir()=="/home") return WXDC_FS_DIRTYPE_DOC; else --- 432,442 ---- int FileSystemStandardUnix::GetDirectorySystemType(FilePath strPath) { if(strPath.IsEmpty()) return WXDC_FS_DIRTYPE_MOUNT; ! else if(strPath=="file:/mnt") return WXDC_FS_DIRTYPE_MOUNT; ! else if(strPath=="file:/home") return WXDC_FS_DIRTYPE_HOME; ! else if(strPath.GetFileDir()=="file:/home") return WXDC_FS_DIRTYPE_DOC; else |