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



On Mon, 2011-09-26 at 19:11 +0200, Kean Johnston wrote:
> > 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).

It should be possible to get that information from FindFirstFileEx, as
far as I can tell. However, this should only be done for g_lstat and not
g_stat, right?

Jürg



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