Category: Streams-Files
Superclass: VFS.FileWrapper
ArchiveFile handles virtual filesystems that have a directory structure of their own. The directories and files in the archive are instances of ArchiveMember, but the functionality resides entirely in ArchiveFile because the members will still ask the archive to get directory information on them, to extract them to a real file, and so on.

Method category index

ArchiveMember protocol (instance)
directory operations (instance)
querying (instance)
still unclassified (instance)
TmpFileArchiveMember protocol (instance)

ArchiveMember protocol (instance)

fillMember: anArchiveMember
Extract the information on anArchiveMember. Answer false if it actually does not exist in the archive; otherwise, answer true after having told anArchiveMember about them by sending #size:stCtime:stMtime:stAtime:isDirectory: to it.

member: anArchiveMember do: aBlock

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

member: anArchiveMember mode: bits

Set the permission bits for the file in anArchiveMember.

refresh

Extract the directory listing from the archive

removeMember: anArchiveMember

Remove the member represented by anArchiveMember.

updateMember: anArchiveMember

Update the member represented by anArchiveMember by copying the file into which it was extracted back to the archive.

top


directory operations (instance)

at: aName
Answer a FilePath for a file named `aName' residing in the directory represented by the receiver.

nameAt: aString

Answer a FilePath for a file named `aName' residing in the directory represented by the receiver.

namesDo: aBlock

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

release

Release the resources used by the receiver that don't survive when reloading a snapshot.

top


querying (instance)

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

isDirectory

Answer true. The archive can always be considered as a directory.

top


still unclassified (instance)

displayOn: aStream
Print a representation of the file identified by the receiver.

top


TmpFileArchiveMember protocol (instance)

extractMember: anArchiveMember
Extract the contents of anArchiveMember into a file that resides on disk, and answer the name of the file.

extractMember: anArchiveMember into: file

Extract the contents of anArchiveMember into a file that resides on disk, and answer the name of the file.

top