[ 
https://issues.apache.org/jira/browse/OODT-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14717601#comment-14717601
 ] 

Aditya Dhulipala commented on OODT-847:
---------------------------------------

I got it to work now. 

It was an error related to saving the file -- even though I made corrections, 
my editor (sublime) didn't write those changes to disk. Maybe it was on a temp 
file or something.

Here's the list of attributes its extracting on my mac computer.

[lastModifiedTime, lastAccessTime, creationTime, size, isSymbolicLink, 
isRegularFile, fileKey, isOther, isDirectory]
[2015-04-06T22:26:30Z, 2015-08-27T21:39:46Z, 2015-04-05T23:45:15Z, 2121, false, 
true, (dev=1000006,ino=14342830), false, false]

I think these are the BasicFileAttributes.

In addition to these, I think the Java file API provides interfaces to extract 
DOS, POSIX attributes also. 

Should we design the extractor to extract these attributes as well?

> New FilemgrMetExtractor to extract File System Attributes
> ---------------------------------------------------------
>
>                 Key: OODT-847
>                 URL: https://issues.apache.org/jira/browse/OODT-847
>             Project: OODT
>          Issue Type: New Feature
>          Components: file manager
>    Affects Versions: 0.8.1
>            Reporter: Rishi Verma
>            Assignee: Rishi Verma
>            Priority: Minor
>             Fix For: 0.11
>
>         Attachments: FileAttributesExtractor.java
>
>
> It's sometimes useful to extract File System metadata from files that people 
> often see when browsing a file on an operating system.
> Examples:
> * POSIX permissions
> * Datetime stamps, including: lastModified, creationTime, lastAccessTime
> * Is a symbolic file?
> * Is a directory?
> * File owner
> * Is hidden file?
> etc.
> Java 7's Files.getAttributes [1] does this in a platform-generic way. We 
> should leverage this and add an extractor for the benefit of the community.
> [1] http://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to