Call us at +1 586 62 ELLIE Office Opened
sales@elliecomputing.com

Newsletter
Keep up to date with the new features added to ECMerge, the new products that we release and receive special offers! (approx. once a month):
HTML version
Text version
Beta Test - Free licence
WeblogRSS 2.0
Testimonials

NewsRSS 2.0
December 12th, 2008: We just released ECMerge 2.2 beta. This version introduces several new features, from which the Launcher, automatic session, shared options, file types and numerous improvements.

November 21st, 2008: We just parametered ECMerge for a new converter (ExifTool) which extracts metadata from a large number of files types (exe, images, audio, video...), find all the need info on the converters page.
               

VFS.Metadata object

 

 

Prototype for VFS.Metadata objects.

Syntax

You cannot create VFS.Metadata objects currently.

You can obtain metadata for file system objects from folder comparisons this way:

var folder_item;
var metadata  = folder_item.metadata.left;    // metadata for left object

Parameters

none.

Property Of

none.

Implemented In

ECMerge 2.1

Description

 VFS.Metadata objects give information about the file system object to which they are associated.

Properties

NB: all the properties except 'error_state' and 'present' here may be 'undefined', when the underlying file system does not give the information.

Property Description
compressed Boolean. True if the file is compressed at its individual levl on the file system.
error_state String. String describing if there is an error for this item.
file  Boolean. True if the object was determined to be a file.
folder Boolean. True if the object was determined to be a folder.
hidden Boolean. True if the object has the hidden flag
last_update Date. Last date of modification
name String. Name of the file system object within its container
present Boolean. True if the object is actually here
size Integer. Size in bytes of the file system object
to_archive Boolean. True if the 'to archive' flag is set for this item
unix_modes Integer. Usual Unix flags as in chmod

 

Methods

 none.

Examples

Example 1.

This sample dumps the metadata about the root item of current frame (which must be a folder document):

var folder_document = current_frame.coordinator.document;
var item = folder_document.root;
dump_metadata (item.metadata.left)

function dump_metadata (metadata)
{
    var metadata_array = [];
    for (var metadaton in metadata)
        metadata_array.push (metadaton + ":" + metadata[metadaton]);
  
    return metadata_array.join (", ");
}

See Also 

FolderDocument object

 

Select your language English Français
© Ellié Computing 2004-2009 - Legal information - Resources