Example 2

Extract the text files from the Tar archive in the file tf to the directory target.

JavaScript

enableTaskPackage("org.at4j"); new UntarTF(). // The Tar file. This may for instance be a File or an EFile. setSource(tf). // The target directory. This may for instance be a File directory or a // Directory. setTarget(target). setFilter( // A filter that matches text files. TarFileEntryFilter.FILTER.and( new TarEntryNameGlobFilter("*.txt"))). run();


* An EntityFS-aware task is implemented using EntityFS. This means that it uses the filter settings of DirectoryView:s and also that it often can work with other file system implementations than File-based, such as the RAM file system.