// "cd " + path + "; unzip -q -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );
executor.executeCommand( "cd \"" + path + "\"; unzip -q -o \"" + zipFile.getName() + "\"; rm -f \"" + zipFile.getName() + "\"" );
zipFile.delete();
RepositoryPermissions permissions = repository.getPermissions();
if ( permissions != null && permissions.getGroup() != null )
{
//executor.executeCommand( "chgrp -Rf " + permissions.getGroup() + " " + path );
executor.executeCommand( "chgrp -Rf " + permissions.getGroup() + " \"" + path + "\"" );
}
if ( permissions != null && permissions.getFileMode() != null )
{
//executor.executeCommand( "chmod -Rf " + permissions.getFileMode() + " " + path );
executor.executeCommand( "chmod -Rf " + permissions.getFileMode() + " \"" + path + "\"" );
}
}
catch ( CommandExecutionException e )
{
throw new TransferFailedException( "Error performing commands for file transfer", e );