The FileBrowser doen't work right on Windows

Andreas Raab raab at isgnw.CS.Uni-Magdeburg.De
Tue Sep 29 10:17:09 UTC 1998


Here is a fix for DosFileDirectory.

fullNameFor: fileName
	"Return the fully-qualified path name for the given file. Correct syntax errors in the file name."
	(fileName size = 2 and:[fileName first isLetter and:[fileName last = $:]])
		ifTrue:[^fileName].
	FileDirectory splitName: fileName to: [:path :localName |
		^ (path isEmpty ifFalse: [path] ifTrue: [
			pathName = self pathNameDelimiter asString ifTrue:[''] ifFalse: [pathName]]),
				self pathNameDelimiter asString, (self checkName: localName fixErrors: true)].


  Andreas
-- 
Linear algebra is your friend - Trigonometry is your enemy.
+===== Andreas Raab ============= (raab at isg.cs.uni-magdeburg.de) =====+
I Department of Simulation and Graphics      Phone: +49 391 671 8065  I
I University of Magdeburg, Germany           Fax:   +49 391 671 1164  I
+=============< http://isgwww.cs.uni-magdeburg.de/~raab >=============+





More information about the Squeak-dev mailing list