28 #ifndef CASA_DIRECTORY_H
29 #define CASA_DIRECTORY_H
38 template<
class T>
class Vector;
175 Bool setUserWritePermission =
True)
const;
177 Bool setUserWritePermission =
True)
const;
243 Bool setUserWritePermission)
const
245 copy (
Path(target), overwrite, setUserWritePermission);
A 1-D Specialization of the Array class.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
std::vector< double > Vector
Directory()
Sets the path on the current working directory.
Bool isEmpty() const
Check if directory is empty.
void copyRecursive(const String &target) const
Copy a directory recursively in a manual way.
File itsFile
This variable is used when a symbolic link is given to be a directory.
void checkPath()
Check if the path defines a directory.
Get information about, and manipulate directories.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void move(const Path &target, Bool overwrite=True)
Move the directory to the target path using the system command mv.
uInt freeSpaceInMB() const
uInt nEntries() const
Return the number of entries in the directory (not counting.
void copy(const Path &target, Bool overwrite=True, Bool setUserWritePermission=True) const
Copy the directory and its contents (recursively) to the target path using the system command cp -r...
Regular expression class.
Class to get file information and a base for other file classes.
bool Bool
Define the standard types used by Casacore.
Directory & operator=(const Directory &that)
Assignment (copy semantics).
virtual Int64 size() const
Return the total size of everything in the Directory.
void removeRecursive(Bool keepDir=False)
Remove the directory and its contents (recursively in all subdirectories).
void create(Bool overwrite=True)
Create the directory.
static Vector< String > shellExpand(const Vector< String > &files, Bool stripPath=False)
For each element of files, find all file names matching it using shell file-expansion rules...
Vector< String > find(const Regex ®exp, Bool followSymLinks=False, Bool recursive=True) const
Find all files which whose names match regex.
String: the storage and methods of handling collections of characters.
Bool isNFSMounted() const
Check if a directory is mounted via NFS or not.
Double freeSpace() const
Get the amount of free space (in bytes) on the file system this directory is on.
void removeFiles()
Remove all files in the directory except subdirectories.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.