Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349270 - [File system] Provide access to Windows specific file system attributes
Summary: [File system] Provide access to Windows specific file system attributes
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.4.0   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 02:40 EDT by Uwe Stieber CLA
Modified: 2013-06-05 05:54 EDT (History)
2 users (show)

See Also:


Attachments
Patch revealing the Windows specific file system attributes (9.57 KB, patch)
2011-06-14 02:44 EDT, Uwe Stieber CLA
no flags Details | Diff
Patch revealing the Windows specific file system attributes (9.62 KB, patch)
2011-06-14 08:47 EDT, Uwe Stieber CLA
mober.at+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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-.