}
public void perform(StorageClient sms)throws Exception{
boolean isWildcard=hasWildCards(from);
boolean isDirectory=false;
GridFileType gridSource=null;
if(isWildcard){
performWildCardExport(sms);
}
else {
//check if source is a directory
gridSource=sms.listProperties(from);
isDirectory=gridSource.getIsDirectory();
if(isDirectory){
if(forceFileOnly){
throw new IOException("Source is a directory");
}
performDirectoryExport(gridSource, new File(to), sms);