Contents

Class FileDirectory


Inheritance:

Object  »
  FileDirectory
    AcornFileDirectoy
    DosFileDirectory
    MacFileDirectory
      MacHFSPlusFileDirectory
    UnixFileDirectory

Class FileDirectory implements the interface to the file systems of your computer. The subclasses implement access support for the file systems of various operating systems, but there is normally no need to use any of these subclasses.

A FileDirectory represents a folder or directory in the underlying platform's file system. It carries a fully-qualified path name for the directory it represents, and can enumerate the files and directories within that directory.

A FileDirectory can be thought of as a Dictionary whose keys are the local names of files in that directory, and whose values are directory "entries". Each entry is an instance of DirectoryEntry, a structure that contains five items:

	<name> <creationTime> <modificationTime> <dirFlag> <fileSize>

The times are given in seconds, and can be converted to a time and date via Time>>dateAndTimeFromSeconds:. See the comment in lookupEntry:... which provides primitive access to this information.

Important Class Methods:

Important Instance Methods:

It should be noted that in the methods that follow, file names and directory names are always strings. Some oher Smalltalk systems provide a class FileName that is used to manipulate file names. Such a class is not part of Squeak.


Contents