public List<FileHandler.FileAttributes> listWorkingDirectory() throws IOException, Exception
	{
		FileHandler fileHandler = null; 
		try
		{
			Tool tool = getTool();
			fileHandler = tool.getToolResource().getFileHandler();
			String workingDirectory = tool.getToolResource().getWorkingDirectory(task.getJobHandle());
			List<FileHandler.FileAttributes> list = fileHandler.list(workingDirectory);
			/*
			log.debug("In listWorkingDirectory, directory is " + workingDirectory + " and there are " + 
				list.size() + " files.");
			*/
			return list;
		}
		finally
		{
			if (fileHandler != null)
			{
				fileHandler.close();
			}
		}
	}
public List<FileHandler.FileAttributes> listWorkingDirectory() throws IOException, Exception
	{
		FileHandler fileHandler = null; 
		try
		{
			Tool tool = getTool();
			fileHandler = tool.getToolResource().getFileHandler();
			String workingDirectory = tool.getToolResource().getWorkingDirectory(task.getJobHandle());
			List<FileHandler.FileAttributes> list = fileHandler.list(workingDirectory);
		
			return list;
		}
		finally
		{
			if (fileHandler != null)
			{
				fileHandler.close();
			}
		}
	}
public list<filehandler.fileattributes> listworkingdirectory() throws ioexception, exception { filehandler filehandler = null; try { tool tool = gettool(); filehandler = tool.gettoolresource().getfilehandler(); string workingdirectory = tool.gettoolresource().getworkingdirectory(task.getjobhandle()); list<filehandler.fileattributes> list = filehandler.list(workingdirectory); return list; } finally { if (filehandler != null) { filehandler.close(); } } }