Next:
FilePath-printing
, Previous:
FilePath-file name management
, Up:
FilePath
1.74.9 FilePath: file operations
contents
Open a read-only FileStream on the receiver, read its contents, close the stream and answer the contents
fileIn
File in the receiver
open: mode
Open the receiver in the given mode (as answered by FileStream's class constant methods)
open: mode ifFail: aBlock
Open the receiver in the given mode (as answered by FileStream's class constant methods). Upon failure, evaluate aBlock.
open: class mode: mode ifFail: aBlock
Open the receiver in the given mode (as answered by FileStream's class constant methods)
openDescriptor: mode
Open the receiver in the given mode (as answered by FileStream's class constant methods)
openDescriptor: mode ifFail: aBlock
Open the receiver in the given mode (as answered by FileStream's class constant methods). Upon failure, evaluate aBlock.
pathFrom: dirName
Compute the relative path from the directory dirName to the receiver
readStream
Open a read-only FileStream on the receiver
remove
Remove the file identified by the receiver
renameTo: newName
Rename the file identified by the receiver to newName
symlinkAs: destName
Create destName as a symbolic link of the receiver. The appropriate relative path is computed automatically.
symlinkFrom: srcName
Create the receiver as a symbolic link from srcName (relative to the path of the receiver).
touch
Update the timestamp of the file corresponding to the receiver.
withReadStreamDo: aBlock
Invoke aBlock with a reading stream open on me, closing it when the dynamic extent of aBlock ends.
withWriteStreamDo: aBlock
Invoke aBlock with a writing stream open on me, closing it when the dynamic extent of aBlock ends.
writeStream
Open a write-only FileStream on the receiver