(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: osl ::

class Directory


Base Classes
FileBase (public)
  |  
  +--Directory
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
Summary
The directory class object provides a enumeration of DirectoryItems.
See Also
DirectoryItem
File
File
file.hxx

Public Members

Methods


Directory( const ::rtl::OUString & strPath );
Constructor.

~Directory( );
Destructor.
RC
open( );
Open a directory for enumerating its contents.
sal_Bool
isOpen( );
Query if directory is open.
RC
close( );
Close a directory.
RC
reset( );
Resets the directory item enumeration to the beginning.
RC
getNextItem( DirectoryItem & rItem, sal_uInt32 nHint = 0 );
Retrieve the next item of a previously opened directory.

Static Methods

static RC
getVolumeInfo( const ::rtl::OUString & ustrDirectoryURL, VolumeInfo & rInfo );
Retrieve information about a volume.
static RC
create( const ::rtl::OUString & ustrDirectoryURL );
Create a directory.
static RC
remove( const ::rtl::OUString & ustrDirectoryURL );
Remove an empty directory.
static RC
createPath( const ::rtl::OUString & aDirectoryUrl, DirectoryCreationObserver * aDirectoryCreationObserver = NULL );
Create a directory path.

Private Members

Methods


Directory( Directory & );
Copy constructor.
Directory &
operator=( Directory & );
Assignment operator.

Data

oslDirectory _pData;
::rtl::OUString _aPath;

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.