Example usage for org.apache.commons.vfs.provider.local LocalFileName getRootFile

List of usage examples for org.apache.commons.vfs.provider.local LocalFileName getRootFile

Introduction

In this page you can find the example usage for org.apache.commons.vfs.provider.local LocalFileName getRootFile.

Prototype

public String getRootFile() 

Source Link

Document

Returns the root file for this file.

Usage

From source file:org.sonatype.gshell.vfs.provider.truezip.TruezipFileProvider.java

/**
 * Creates the filesystem.//from   w  w w .  j  a  v a 2  s. c  o m
 */
protected FileSystem doCreateFileSystem(final FileName name, final FileSystemOptions options)
        throws FileSystemException {
    LocalFileName rootName = (LocalFileName) name;
    return new TruezipFileSystem(rootName, rootName.getRootFile(), options);
}