2703 !AbstractOperatingSystem class methodsFor:'file queries'! |
2703 !AbstractOperatingSystem class methodsFor:'file queries'! |
2704 |
2704 |
2705 caseSensitiveFilenames |
2705 caseSensitiveFilenames |
2706 "return true, if the OS has caseSensitive file naming. |
2706 "return true, if the OS has caseSensitive file naming. |
2707 On MSDOS, this will return false; |
2707 On MSDOS, this will return false; |
2708 on a real OS, we return true." |
2708 on a real OS, we return true. |
|
2709 Be aware, that OSX can be configured to be either. |
|
2710 Also, that it actually depends on the mounted volume" |
2709 |
2711 |
2710 "/ actually, this query is too general, as it may depend on the mounted volume; |
2712 "/ actually, this query is too general, as it may depend on the mounted volume; |
2711 "/ so we need a query for a particular directory (and/or volume). |
2713 "/ so we need a query for a particular directory (and/or volume). |
2712 self subclassResponsibility |
2714 self subclassResponsibility |
|
2715 ! |
|
2716 |
|
2717 caseSensitiveFilenamesIn:aFolderPath |
|
2718 "return true, if the OS has caseSensitive file naming inside a folderPath. |
|
2719 Be aware, that it actually depends on the mounted volume, |
|
2720 so some concrete subclass may redefine this query." |
|
2721 |
|
2722 ^ self caseSensitiveFilenames |
2713 ! |
2723 ! |
2714 |
2724 |
2715 compressPath:pathName |
2725 compressPath:pathName |
2716 "return the pathName compressed - that is, remove all ..-entries |
2726 "return the pathName compressed - that is, remove all ..-entries |
2717 and . entries. This does not always (in case of symbolic links) |
2727 and . entries. This does not always (in case of symbolic links) |