29 #ifndef vtkDirectory_h
30 #define vtkDirectory_h
32 #include "vtkCommonSystemModule.h"
107 static int Rename(
const char* oldname,
const char* newname);
120 static
int CreateDirectoryInternal(const
char*
dir);
124 void operator=(const
vtkDirectory&) VTK_DELETE_FUNCTION;
OS independent class for access and manipulation of system directories.
static int DeleteDirectory(const char *dir)
Remove a directory.
vtkIdType GetNumberOfFiles()
Return the number of files in the current directory.
int FileIsDirectory(const char *name)
Return true if the file is a directory.
int Open(const char *dir)
Open the specified directory and load the names of the files in that directory.
static int MakeDirectory(const char *dir)
Create directory.
const char * GetFile(vtkIdType index)
Return the file at the given index, the indexing is 0 based.
void CleanUpFilesAndPath()
static const char * GetCurrentWorkingDirectory(char *buf, unsigned int len)
Get the current working directory.
static int Rename(const char *oldname, const char *newname)
Rename a file or directory.
static vtkDirectory * New()
Create a new vtkDirectory object.
void PrintSelf(ostream &os, vtkIndent indent) override
Print directory to stream.
a simple class to control print indentation
abstract base class for most VTK objects
a vtkAbstractArray subclass for strings