Struct sct=new StructImpl();
sct.set("canRead", Caster.toBoolean(src.isReadable()));
sct.set("canWrite", Caster.toBoolean(src.isWriteable()));
sct.set("isHidden", Caster.toBoolean(src.getAttribute(Resource.ATTRIBUTE_HIDDEN)));
sct.set("lastmodified",new DateTimeImpl(pc,src.lastModified(),false) );
sct.set(KeyConstants._name,src.getName() );
sct.set(KeyConstants._parent,src.getParent() );
sct.set(KeyConstants._path,src.getAbsolutePath() );
sct.set(KeyConstants._size, Caster.toDouble(src.length()));
if(src.isDirectory())sct.set(KeyConstants._type, "directory");