From 68ba1825fcaf94bdf7e057ef19585226ec48ce5d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 18 Jun 2013 20:56:38 +0000 Subject: Add a can_write function to PathV2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184233 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/FileSystem.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 6de8759dda..21159dd264 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -356,6 +356,12 @@ inline bool exists(const Twine &path) { /// @returns True if we can execute it, false otherwise. bool can_execute(const Twine &Path); +/// @brief Can we write this file? +/// +/// @param Path Input path. +/// @returns True if we can write to it, false otherwise. +bool can_write(const Twine &Path); + /// @brief Do file_status's represent the same thing? /// /// @param A Input file_status. -- cgit v1.2.3