Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349270

Summary: [File system] Provide access to Windows specific file system attributes
Product: [Tools] TCF Reporter: Uwe Stieber <uwe.st>
Component: AgentAssignee: Project Inbox <tcf.agent-inbox>
Status: RESOLVED FIXED QA Contact: Eugene Tarassov <eugene>
Severity: enhancement    
Priority: P3 CC: cdtdoug, william.chen
Version: unspecified   
Target Milestone: 0.4.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch revealing the Windows specific file system attributes
none
Patch revealing the Windows specific file system attributes mober.at+eclipse: iplog-

Description Uwe Stieber CLA 2011-06-14 02:40:35 EDT
Currently, the TCF file system implementation is auto mapping the read-only attribute through the Posix API to the FileAttrs.permissions field only. Other Windows specific file system attributes like "Hidden", "Compressed" and others are not available through the TCF file system service. The Windows file system specific attributes should be revealed.
Comment 1 Uwe Stieber CLA 2011-06-14 02:44:36 EDT
Created attachment 197939 [details]
Patch revealing the Windows specific file system attributes

The proposed patch is revealing the Windows specific file system attributes via the FileAttrs.attributes map. The map key is "Win32Attrs" and the value is an Integer. For interpretation of the integer value, see the Windows API help for GetFileAttributes/SetFileAttributes.
Comment 2 Uwe Stieber CLA 2011-06-14 08:47:29 EDT
Created attachment 197948 [details]
Patch revealing the Windows specific file system attributes

Fixed a bug where the file attribute value INVALID_FILE_ATTRIBUTES (-1) is written to the JSON stream.
Comment 3 Eugene Tarassov CLA 2011-06-14 14:16:31 EDT
I have committed the path after fixing a compilation error on Linux and rearranging the code a little bit to reduce number of if-defs.
Thanks!
Comment 4 Martin Oberhuber CLA 2013-05-23 19:24:13 EDT
Comment on attachment 197948 [details]
Patch revealing the Windows specific file system attributes

Uwe has been a TCF committer since the restructuring review in 2010:
http://wiki.eclipse.org/DSDP/Restructuring_Review#Target_Communication_Framework

Thus marking attached patch as iplog-.