[squeak-dev] Why would (Unix)FileDirectory class>>#checkName:fixErrors: mangle a correctly formatted file path/name?
Tobias Pape
Das.Linux at gmx.de
Thu Nov 23 06:18:47 UTC 2017
> On 23.11.2017, at 02:57, tim Rowledge <tim at rowledge.org> wrote:
>
> At least, UnixFileDirectory seems to -
>
> '/home/pi/Squeak/Senders of printPSToFileNamed:.ps’ asFileName
>
> results in '#home#pi#Squeak#Senders of printPSToFileNamed:.ps’, which seems very odd. Surely if you have a string that is a correct filename returned by some other code that carefully makes such, then #asFileName etc ought to return the same (or even the original) string?
Well you asked for a file "name" right? not a path. and "/" is typically illegal in Unix file names (or has to be quoted or so).
The comment seems to back that:
"Answer a String made up from the receiver that is an acceptable file
name."
Best regards
-tobias
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> If you never try anything new, you'll miss out on many of life's great disappointments
>
>
>
More information about the Squeak-dev
mailing list
|