Re: _wstat on Windows (actually stat stuff in general)
- From: Kean Johnston <kean johnston gmail com>
- To: Jürg Billeter <j bitron ch>
- Cc: gtk-devel-list gnome org, Jernej Simončič <jernej|s-gmane eternallybored org>
- Subject: Re: _wstat on Windows (actually stat stuff in general)
- Date: Mon, 26 Sep 2011 19:11:15 +0200
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]