-
asFilename [converting]
^self fileName asFilename
-
assert: assertBlock do: doBlock ensure: ensureBlock [private]
assertBlock value.
[doBlock value]
ensure: [ensureBlock value]
-
asURI [converting]
^self fileName asURI
-
baseName [accessing]
^self class baseNameFromFilename: self fileName
-
extension [accessing]
^self class extensionFromFilename: self fileName
-
fileName [accessing]
^fileName
-
fileName: aFilename [accessing]
aFilename ifNil: [fileName := nil]
ifNotNil: [fileName := aFilename asFilename]
-
informationString [accessing]
| aStream aString |
self
assert: [aStream := String new writeStream]
do: [self fileName notNil
ifTrue:
[aStream tab.
aStream nextPutAll: (#jun_file__ >> 'file: ') asString.
aStream nextPutAll: (Filename splitPath: self fileName asString) last.
aStream cr]]
ensure:
[aString := aStream contents.
aStream close].
^aString
-
initialize [initialize-release]
fileName := nil
-
pathName [accessing]
^(Filename splitPath: self fileName asString) first
-
postCopy [copying]
super postCopy.
fileName := fileName copy
-
release [initialize-release]
super release