Back: VFS.FileHandlerWrapper-delegation Up: Base classes Forward: VFS.RealFileHandler class-C call-outs   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.204 VFS.RealFileHandler

Defined in namespace Smalltalk.VFS
Superclass: VFS.VFSHandler
Category: Streams-Files
RealFileHandler is an handler for files that are on disk, as well as for virtual files that end up being on disk when they are opened for the first time.

1.204.1 VFS.RealFileHandler class: C call-outs  (class)
1.204.2 VFS.RealFileHandler class: initialization  (class)
1.204.3 VFS.RealFileHandler: accessing  (instance)
1.204.4 VFS.RealFileHandler: directory operations  (instance)
1.204.5 VFS.RealFileHandler: file operations  (instance)
1.204.6 VFS.RealFileHandler: testing  (instance)


1.204.1 VFS.RealFileHandler class: C call-outs

working
Answer the working directory.


1.204.2 VFS.RealFileHandler class: initialization

initialize
Initialize the receiver's class variables


1.204.3 VFS.RealFileHandler: accessing

creationTime
Answer the creation time of the file identified by the receiver. On some operating systems, this could actually be the last change time (the `last change time' has to do with permissions, ownership and the like).

finalize
Free the statistics for the receiver

isDirectory
Answer whether the file is a directory.

isSymbolicLink
Answer whether the file is a symbolic link.

lastAccessTime
Answer the last access time of the file identified by the receiver

lastChangeTime
Answer the last change time of the file identified by the receiver (the `last change time' has to do with permissions, ownership and the like). On some operating systems, this could actually be the file creation time.

lastModifyTime
Answer the last modify time of the file identified by the receiver (the `last modify time' has to do with the actual file contents).

mode
Answer the octal permissions for the file.

mode: mode
Set the octal permissions for the file to be `mode'.

name
Answer the name of the file identified by the receiver

name: aName
Private - Initialize the receiver's instance variables

realFileName
Answer the real file name for the file identified by the receiver

refresh
Refresh the statistics for the receiver

size
Answer the size of the file identified by the receiver


1.204.4 VFS.RealFileHandler: directory operations

createDir: dirName
Create a subdirectory of the receiver, naming it dirName.

do: aBlock
Evaluate aBlock once for each file in the directory represented by the receiver, passing its name. aBlock should not return.


1.204.5 VFS.RealFileHandler: file operations

lastAccessTime: accessDateTime lastModifyTime: modifyDateTime
Set the receiver's timestamps to be accessDateTime and modifyDateTime.

open: class mode: mode ifFail: aBlock
Open the receiver in the given mode (as answered by FileStream's class constant methods)

remove
Remove the file with the given path name

renameTo: newFileName
Rename the file with the given path name to newFileName

symlinkFrom: srcName
Create the receiver as a symlink from path destName


1.204.6 VFS.RealFileHandler: testing

exists
Answer whether a file with the name contained in the receiver does exist.

isExecutable
Answer whether a file with the name contained in the receiver does exist and is executable

isReadable
Answer whether a file with the name contained in the receiver does exist and is readable

isWriteable
Answer whether a file with the name contained in the receiver does exist and is writeable



Back: VFS.RealFileHandler-file operations Up: VFS.RealFileHandler Forward: VFS.TmpFileArchiveMemberHandler   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html