mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Fix touching of files that in Windows have the read-only attribute set
This commit is contained in:
parent
abcea4d9f3
commit
e4aa186b1a
4 changed files with 57 additions and 0 deletions
|
|
@ -381,6 +381,16 @@ ssize_t windows_pwrite(int f, const void* buffer, size_t size, off_t offset);
|
|||
*/
|
||||
size_t windows_direct_size(void);
|
||||
|
||||
/**
|
||||
* Like GetFileAttributes()
|
||||
*/
|
||||
int windows_get_file_attributes(const char* file);
|
||||
|
||||
/**
|
||||
* Like SetFileAttributes()
|
||||
*/
|
||||
int windows_set_file_attributes(const char* file, int attributes);
|
||||
|
||||
/****************************************************************************/
|
||||
/* thread */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue