[Box Backup-dev] Win32 file attributes of locked files

Chris Wilson boxbackup-dev@fluffy.co.uk
Thu, 10 Aug 2006 10:18:38 +0100 (BST)


Hi Charles,

> At what point in the cycle does box try to get the attributes?
>
> I've not got time to dig into this tonight (pile of evil SQL to write 
> for tomorrow...), but:
>
> In order to find the file in the first place, surely something like 
> FindFirstFile/FindNextFile was called? In which case the 
> dwFileAttributes field in WIN32_FIND_DATA should have what you need.

You're right, thanks! We're using readdir, but struct dirent has a d_type 
member.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |