public ArrayList<MyFtpFile> scanDirectory(Path path)
	{
		if(!Files.isDirectory(path))
		{
			System.out.println("Path not a directory.");
			return null;
		}
		
		ArrayList<MyFtpFile> files = new ArrayList<MyFtpFile>();

		try (DirectoryStream<Path> stream = 
				Files.newDirectoryStream(path, filter)) 
	    {
	        for (Path p : stream) 
	        	files.add(new MyFtpFile(p));
	        
	    } 
	    catch (IOException e) 
	    {
	        e.printStackTrace();
	    }
		
		return files;
	}