X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d5efafe74f3788bfd3b3d8b1e8e13135a595ed5..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/filename.h?ds=inline diff --git a/interface/wx/filename.h b/interface/wx/filename.h index 29f79a94f6..05383c3a89 100644 --- a/interface/wx/filename.h +++ b/interface/wx/filename.h @@ -2,7 +2,6 @@ // Name: filename.h // Purpose: interface of wxFileName // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -1257,6 +1256,23 @@ public: */ void SetPath(const wxString& path, wxPathFormat format = wxPATH_NATIVE); + /** + Sets permissions for this file or directory. + + @param permissions + The new permissions: this should be a combination of + ::wxPosixPermissions enum elements. + + @since 2.9.6 + + @note If this is a symbolic link and it should not be followed + this call will fail. + + @return @true on success, @false if an error occurred (for example, + the file doesn't exist). + */ + bool SetPermissions(int permissions) + /** Sets the file creation and last access/modification times (any of the pointers may be @NULL).