mirror of https://github.com/vitalif/grive2
changed the ifdef. commented out the upload line as it doesn't work
parent
a9ae269f5c
commit
0d4eede114
|
@ -199,7 +199,7 @@ std::cout << "downloading " << path << std::endl ;
|
|||
else
|
||||
{
|
||||
std::cout << "local " << filename << " is newer" << std::endl ;
|
||||
UploadFile( entry ) ;
|
||||
// UploadFile( entry ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ DateTime FileMTime( const std::string& filename )
|
|||
if ( ::stat( filename.c_str(), &s ) != 0 )
|
||||
throw std::runtime_error( "cannot get file attribute of " + filename ) ;
|
||||
|
||||
#ifdef __APPLE__ && __DARWIN_64_BIT_INO_T
|
||||
#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
|
||||
return DateTime( s.st_mtimespec.tv_sec, s.st_mtimespec.tv_nsec ) ;
|
||||
#else
|
||||
return DateTime( s.st_mtim.tv_sec, s.st_mtim.tv_nsec);
|
||||
|
|
Loading…
Reference in New Issue