Re: _wstat on Windows (actually stat stuff in general)



Couldn't GLib directly use GetFileAttributesExW instead, or does this
Sadly the file attributes constants dont have anything like FILE_ATTRIBUTE_SYMLINK etc, so we wouldn't be able to determine if the file is a symbolic link or not. Which I guess would be OK because this is g_stat() not g_lstat(). I guess what we could do (if GetFileAttributesExW works correctly on symbolic links) is fill in the basic stat structure with _wstat() and then just change the size field with whatever GetFileAttributesExW reports).

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]