core/src/main/java/org/apache/commons/vfs2/impl/PrivilegedFileReplicator.java
/**
     * Creates a local copy of the file, and all its descendents.
     * @param srcFile The source FileObject.
     * @param selector The file selector.
     * @return The replicated file.
     * @throws FileSystemException if an error occurs.
     */
Creates a local copy of the file, and all its descendents.
@param srcFile The source FileObject.
@param selector The file selector.
@return The replicated file.
@throws FileSystemException if an error occurs.
Creates a local copy of the file and all its descendents . @param srcFile The source FileObject . @param selector The file selector . @return The replicated file . @throws FileSystemException if an error occurs .
public File replicateFile(FileObject srcFile, FileSelector selector)
        throws FileSystemException
    {
        try
        {
            final ReplicateAction action = new ReplicateAction(srcFile, selector);
            return AccessController.doPrivileged(action);
        }
        catch (final PrivilegedActionException e)
        {
            throw new FileSystemException("vfs.impl/replicate-file.error", new Object[]{srcFile.getName()}, e);
        }
    }
public File replicateFile ( FileObject srcFile , FileSelector selector ) throws FileSystemException { try { final ReplicateAction action = new ReplicateAction ( srcFile , selector ) ; return AccessController . doPrivileged ( action ) ; } catch ( final PrivilegedActionException e ) { throw new FileSystemException ( "vfs.impl/replicate-file.error" , new Object [ ] { srcFile . getName ( ) } , e ) ; } }
Creates a local copy of the file, and all its descendents.
Creates a local copy of the file and all its descendents .