AbstractOperatingSystem.st
changeset 16679 6538e17626c9
parent 16643 4775f776440c
child 16827 451a5d4a1648
--- a/AbstractOperatingSystem.st	Thu Jul 03 16:36:25 2014 +0200
+++ b/AbstractOperatingSystem.st	Thu Jul 03 16:36:38 2014 +0200
@@ -2830,6 +2830,15 @@
     ^ '..'
 !
 
+pathNameForDrive:driveName
+    "given a drive name, return the pathname to open it as a directory.
+     For Windows, this is the driveName itself.
+     For OSX, '/Volumes' is prepended.
+     Other OSs might prepent the pount point (i.e. /mnt/)"
+
+    ^ driveName
+!
+
 pathNameOf:pathName
     "return the pathName of the argument, aPathString,
      - thats the full pathname of the directory, starting at '/'.
@@ -7506,11 +7515,11 @@
 !AbstractOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.265 2014-06-29 08:45:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.266 2014-07-03 14:36:38 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.265 2014-06-29 08:45:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.266 2014-07-03 14:36:38 cg Exp $'
 ! !