25#include <wx/filename.h>
33 FILE* fp = wxFopen( aPath, aMode );
37 if( posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL ) != 0 )
49 struct stat sourceStat;
50 if( stat( aSrc.fn_str(), &sourceStat ) == 0 )
52 mode_t permissions = sourceStat.st_mode & ( S_IRWXU | S_IRWXG | S_IRWXO );
53 if( chmod( aDest.fn_str(), permissions ) == 0 )
73 if( stat( aFilePath.fn_str(), &fileStat ) == 0 )
76 mode_t newPermissions = fileStat.st_mode | S_IWUSR;
77 if( chmod( aFilePath.fn_str(), newPermissions ) == 0 )
87 wxFileName fn( aFileName );
89 return fn.GetName().StartsWith( wxT(
"." ) );