Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Directory Class Reference

#include <elm/sys/Directory.h>

+ Inheritance diagram for Directory:

Classes

class  Iter
 

Public Member Functions

LockPtr< DirectorytoDirectory (void) override
 
- Public Member Functions inherited from FileItem
virtual LockPtr< FiletoFile ()
 
String name ()
 
Pathpath ()
 
bool isReadable ()
 
bool isWritable ()
 
bool isDeletable ()
 
- Public Member Functions inherited from Lock
 Lock (int usage=0)
 
void lock (void)
 
void unlock (void)
 
int usage (void) const
 

Static Public Member Functions

static LockPtr< Directorymake (Path path)
 
- Static Public Member Functions inherited from FileItem
static LockPtr< FileItemget (Path path)
 

Additional Inherited Members

- Protected Member Functions inherited from FileItem
 FileItem (Path path, ino_t inode)
 
virtual ~FileItem ()
 
- Protected Attributes inherited from FileItem
Directoryparent
 
Path _path
 
ino_t ino
 

Detailed Description

This class represents a directory file item.

Member Function Documentation

◆ make()

LockPtr< Directory > make ( Path  path)
static

Build a new directory at the given path.

Parameters
pathPath of the directory.
Returns
Built directory. @Throws SystemException When creation files.

References Path::asSysString(), FileItem::get(), and FileItem::path().

◆ toDirectory()

LockPtr< Directory > toDirectory ( void  )
overridevirtual

Convert the file item to directory if it is consistent.

Returns
Matching directory or null (if it is a regular file for example).

Reimplemented from FileItem.


The documentation for this class was generated from the following files: