29 #ifndef CASA_SYMLINK_H
30 #define CASA_SYMLINK_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/OS/Path.h>
35 #include <casacore/casa/OS/File.h>
String: the storage and methods of handling collections of characters.
String getSymLink() const
Get the value of the symlink.
void create(const Path &target, Bool overwrite=True)
Make a symbolic link to a file given by target.
void remove()
Remove a symbolic link.
SymLink & operator=(const SymLink &that)
Assignment (copy semantics).
SymLink(const Path &name)
Create a SymLink with the given path.
SymLink(const SymLink &that)
Copy constructor (copy semantics).
void copy(const Path &target, Bool overwrite=True) const
Copy the symlink to the target path using the system command cp.
SymLink(const File &name)
SymLink()
The default constructor creates a SymLink with path ".".
void checkPath() const
Check if the path of the file is valid.
Path readSymLink() const
Read value of a symbolic link and return it as a Path.
void move(const Path &target, Bool overwrite=True)
Move the symlink to the target path using the system command mv.
SymLink(const String &name)
Path followSymLink() const
As readSymLink, but the entire symlink chain is followed when the symlinks points to other symlinks.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.