git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42254
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxIsWritable(const wxString &path)
{
bool wxIsWritable(const wxString &path)
{
+#if defined( __UNIX__ ) || defined(__OS2__)
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), W_OK) == 0;
#elif defined( __WINDOWS__ )
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), W_OK) == 0;
#elif defined( __WINDOWS__ )
bool wxIsReadable(const wxString &path)
{
bool wxIsReadable(const wxString &path)
{
+#if defined( __UNIX__ ) || defined(__OS2__)
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), R_OK) == 0;
#elif defined( __WINDOWS__ )
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), R_OK) == 0;
#elif defined( __WINDOWS__ )
bool wxIsExecutable(const wxString &path)
{
bool wxIsExecutable(const wxString &path)
{
+#if defined( __UNIX__ ) || defined(__OS2__)
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), X_OK) == 0;
#elif defined( __WINDOWS__ )
// access() will take in count also symbolic links
return access(wxConvFile.cWX2MB(path), X_OK) == 0;
#elif defined( __WINDOWS__ )