code: public static List<FileStatus> listFilesToCopyAtPath(FileSystem fs, Path path, PathFilter fileFilter,
        boolean includeEmptyDirectories) throws IOException {
      return listFilesToCopyAtPath(fs, path, fileFilter, false, includeEmptyDirectories);
    }
docs: Given a path to copy, list all files rooted at the given path to copy
  
  @param fs the file system of the path
  @param path root path to copy
  @param fileFilter a filter only applied to root
  @param includeEmptyDirectories a control to include empty directories for copy