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