[squeak-dev] (FSPath / 'foo.bar.zot') extension = 'bar.zot'
Tony Garnock-Jones
tonyg at leastfixedpoint.com
Thu Nov 5 18:31:44 UTC 2020
Hi all,
Currently:
(FSPath / 'foo.bar.zot') extension = 'bar.zot'
Should it be? I expected it to equal 'zot'.
For reference, in python3:
os.path.splitext('foo.bar.zot') == ('foo.bar', '.zot')
and in racket
(equal? (path-get-extension "foo.bar.zot") #".zot")
Tony
More information about the Squeak-dev
mailing list
|