For PR351:

Implement three new functions to allow setting access/permission bits on
the file referenced by a path. The makeReadable and makeExecutable methods
replace the FileUtilities MakeFileReadable and MakeFileExecutable
functions. The makeWritable function is new and provided for consistency
since Path has a writable() method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-12-13 19:59:50 +00:00
parent fcdd82e4a9
commit 77cc91deaa
5 changed files with 106 additions and 0 deletions

View File

@@ -287,6 +287,15 @@ Path::getLast() const {
return path.substr(pos+1);
}
void Path::makeReadable() {
}
void Path::makeWriteable() {
}
void Path::makeExecutable() {
}
bool
Path::setDirectory(const std::string& a_path) {
if (a_path.size() == 0)