Back: VFS.ArchiveMember-testing Up: Base classes Forward: VFS.FileWrapper class-initializing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.208 VFS.FileWrapper

Defined in namespace Smalltalk.VFS
Superclass: FilePath
Category: Streams-Files
FileWrapper gives information for virtual files that refer to a real file on disk.

1.208.1 VFS.FileWrapper class: initializing  (class)
1.208.2 VFS.FileWrapper class: instance creation  (class)
1.208.3 VFS.FileWrapper: accessing  (instance)
1.208.4 VFS.FileWrapper: basic  (instance)
1.208.5 VFS.FileWrapper: delegation  (instance)
1.208.6 VFS.FileWrapper: enumerating  (instance)
1.208.7 VFS.FileWrapper: file operations  (instance)
1.208.8 VFS.FileWrapper: testing  (instance)


1.208.1 VFS.FileWrapper class: initializing

initialize
Register the receiver with ObjectMemory

update: aspect
Private - Remove the files before quitting, and register the virtual filesystems specified by the subclasses upon image load.


1.208.2 VFS.FileWrapper class: instance creation

on: file
Create an instance of this class representing the contents of the given file, under the virtual filesystem fsName.


1.208.3 VFS.FileWrapper: accessing

asString
Answer the string representation of the receiver's path.

at: aName
Answer a File or Directory object as appropriate for a file named 'aName' in the directory represented by the receiver.

lastAccessTime: accessDateTime lastModifyTime: modifyDateTime
Update the timestamps of the file corresponding to the receiver, to be accessDateTime and modifyDateTime.

name
Answer the full path to the receiver.

owner: ownerString group: groupString
Set the receiver's owner and group to be ownerString and groupString.

pathTo: destName
Compute the relative path from the receiver to destName.


1.208.4 VFS.FileWrapper: basic

= aFile
Answer whether the receiver represents the same file as the receiver.

hash
Answer a hash value for the receiver.


1.208.5 VFS.FileWrapper: delegation

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).

full
Answer the size of the file identified by the receiver

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

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 permission bits for the file identified by the receiver

mode: anInteger
Answer the permission bits for the file identified by the receiver

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

size
Answer the size of the file identified by the receiver


1.208.6 VFS.FileWrapper: enumerating

namesDo: aBlock
Evaluate aBlock once for each file in the directory represented by the receiver, passing its name.


1.208.7 VFS.FileWrapper: file operations

pathFrom: dirName
Compute the relative path from the directory dirName to 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).


1.208.8 VFS.FileWrapper: testing

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

isAbsolute
Answer whether the receiver identifies an absolute path.

isAccessible
Answer whether a directory with the name contained in the receiver does exist and can be accessed

isDirectory
Answer whether a file with the name contained in the receiver does exist identifies a directory.

isSymbolicLink
Answer whether a file with the name contained in the receiver does exist and identifies a symbolic link.



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


This document was generated on August, 19 2010 using texi2html