[squeak-dev] The Trunk: Files-mt.201.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Mar 15 13:47:04 UTC 2023
Marcel Taeumel uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-mt.201.mcz
==================== Summary ====================
Name: Files-mt.201
Author: mt
Time: 15 March 2023, 2:47:04.595644 pm
UUID: 54f012ce-26cd-514a-af62-27986045b252
Ancestors: Files-eem.200
Remove dependency to MorphicExtras
=============== Diff against Files-eem.200 ===============
Item was changed:
----- Method: FileDirectory class>>urlForFileNamed: (in category 'name utilities') -----
urlForFileNamed: aFilename
"Create a URL for the given fully qualified file name"
"FileDirectory urlForFileNamed:
'C:\Home\andreasr\Squeak\DSqueak3\DSqueak3:=1.1\DSqueak3.1.image' "
| path localName |
DirectoryClass
splitName: aFilename
to: [:p :n |
path := p.
localName := n].
+ ^ localName asUrlRelativeTo: (self on: path) asUrl!
- ^ localName asUrlRelativeTo: (self on: path) url asUrl!
Item was changed:
----- Method: FileDirectory>>realUrl (in category 'file name utilities') -----
realUrl
"Senders expect url without trailing slash - #url returns slash"
| url |
+ url := self asUrl asString.
- url := self url.
url last = $/ ifTrue:[^url copyFrom: 1 to: url size-1].
^url!
More information about the Squeak-dev
mailing list
|