core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java
/**
     * Creates a temporary local copy of a file and its descendents.
     */
Creates a temporary local copy of a file and its descendents.
Creates a temporary local copy of a file and its descendents .
@Override
    protected File doReplicateFile(final FileObject fileObject,
                                   final FileSelector selector)
        throws Exception
    {
        final LocalFile localFile = (LocalFile) fileObject;
        final File file = localFile.getLocalFile();
        final SecurityManager sm = System.getSecurityManager();
        if (sm != null)
        {
            final FilePermission requiredPerm = new FilePermission(file.getAbsolutePath(), "read");
            sm.checkPermission(requiredPerm);
        }
        return file;
    }
@ Override protected File doReplicateFile ( final FileObject fileObject , final FileSelector selector ) throws Exception { final LocalFile localFile = ( LocalFile ) fileObject ; final File file = localFile . getLocalFile ( ) ; final SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { final FilePermission requiredPerm = new FilePermission ( file . getAbsolutePath ( ) , "read" ) ; sm . checkPermission ( requiredPerm ) ; } return file ; }
Creates a temporary local copy of a file and its descendents.
Creates a temporary local copy of a file and its descendents .