directory flushing doesn't work in windows
This commit is contained in:
@@ -203,6 +203,7 @@ bool RageFileObjDirect::FinalFlush()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
/* Wait for the directory to be flushed. */
|
/* Wait for the directory to be flushed. */
|
||||||
int dirfd = open( Dirname(path), O_RDONLY );
|
int dirfd = open( Dirname(path), O_RDONLY );
|
||||||
if( dirfd == -1 )
|
if( dirfd == -1 )
|
||||||
@@ -221,6 +222,7 @@ bool RageFileObjDirect::FinalFlush()
|
|||||||
}
|
}
|
||||||
|
|
||||||
close( dirfd );
|
close( dirfd );
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user