Do not derive your own classes from this class.
Use the functions in this group to construct and destroy IDirectory objects.
![]() |
public:
virtual ~IDirectory()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IDirectory(const IDirectory& copy)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IDirectory()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
The assignment operator for this class.
![]() |
public:
IDirectory& operator =(const IFileSystemEntity& right)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the functions in this group to browse and manage the file system, for example, to create a new directory or file, delete the contents of a directory, create a temporary directory, and so forth.
![]() |
public:
IDirectory createDirectory( const IFileName& pathOrName, const ICompoundNameParser& = defaultParser ( ) )
IInvalidParameter | thrown if pathOrName is a full path instead of a partial path |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFile createFile( const IFileName& name, IFileSize initialSize = 0, const ICompoundNameParser& = defaultParser ( ) )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
static IDirectory createTemporary( const IFileName& dirName = uniqueName ( ) )
Creates a temporary directory in the appropriate place for temporary storage on the current system. The directory is temporary in that it is not automatically deleted when the IDirectory object is destroyed.
IEntityExists | thrown if a name is provided and a a temporary directory with that name already exists. |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void deleteAllContents()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFSDirectoryRecord* getRecord() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFileSystemEntity lookUp( const IPathName& partialPath ) const
IInvalidParameter | thrown if partialPath is a full path instead of a partial path |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IFileSystemEntity lookUp( const IHostPathName& pathOrName, const ICompoundNameParser& = defaultParser ( ) ) const
IInvalidParameter | thrown if pathOrName is a full path instead of a partial path |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Constants for use with this class.
![]() |
public:
static const IFileKind _IMPORT kKind
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the functions in this group to set or get the current directory for the process.
![]() |
public:
static IDirectory current()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
static void setCurrent(const IDirectory&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the constructors in this group to create IDirectory objects based on the given information, such as a host path name, a partial path name, a file system entity, or a file system directory record.
![]() |
public:
IDirectory(IFSDirectoryRecord* Record)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IDirectory( const IHostPathName& path, ECreateFlags flags = kMustExist, const ICompoundNameParser& = defaultParser ( ) )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IDirectory(const IFileSystemEntity& copy)
IEntityTypeMismatch | thrown if the specified entity is not a directory |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IDirectory( const IPathName& path, ECreateFlags flags = kMustExist )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IFileSystemEntity()
bool connected() const
IFileSystemEntity copyTo( IDirectory& destination, const IFileName& newName = "", EFailureAction action = kStop ) const
static const ICompoundNameParser& defaultParser()
void deleteSelf(bool deleteChildren = false)
IFSRecord* getRecord() const
IHostPathName hostPath( const ICompoundNameParser& parser = defaultParser ( ) ) const
IFileSystemEntity(IFSRecord* Record)
IFileSystemEntity(const IPathName& path)
IFileSystemEntity( const IHostPathName& hostPath, const ICompoundNameParser& = defaultParser ( ) )
IFileSystemEntity(const IFileSystemEntity& copy)
IFileSystemEntity()
bool isA(const IFileKind& kind) const
ITimeStamp modificationTime() const
void moveTo( IDirectory& destination, const IFileName& newName = "", EFailureAction action = kStop )
IFileName name() const
bool operator !=(const IFileSystemEntity& object) const
virtual IFileSystemEntity& operator =( const IFileSystemEntity& right )
bool operator ==(const IFileSystemEntity& object) const
IDirectory parent() const
IPathName path() const
virtual void readFromStream(IDataStream& fromwhere)
void setName(const IFileName& newName) const
bool temporary() const
IDirectory topmostParent() const
static const IFileName& uniqueName()
bool valid() const
IVolume volume() const
virtual void writeToStream(IDataStream& towhere) const
virtual ~IMStreamable()
void externalizeToStream(IDataStream& towhere) const
void internalizeFromStream(IDataStream& fromwhere)
virtual const ITypeRepresentation& typeRepresentation() const = 0
IMStreamable(const IMStreamable& other)
IMStreamable()
virtual void readFromStream(IDataStream& fromwhere) = 0
virtual void writeToStream(IDataStream& towhere) const = 0
void setInvalid()
void typeSafeAssign( const IFileSystemEntity& right, const IFileKind& kind )