24#include <wx/filename.h>
32 FILE* fp = wxFopen( aPath, aMode );
35 posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
42 struct stat sourceStat;
43 if( stat( aSrc.fn_str(), &sourceStat ) == 0 )
45 mode_t permissions = sourceStat.st_mode & ( S_IRWXU | S_IRWXG | S_IRWXO );
46 if( chmod( aDest.fn_str(), permissions ) == 0 )
65 wxFileName fn( aFileName );
67 return fn.GetName().StartsWith( wxT(
"." ) );