private static String fileAttributesToString(PosixFileAttributes fileAttributes) {
    return "PosixFileAttributes{" +
        "creationTimeMillis=" + fileAttributes.creationTime().toMillis() +
        ", lastModifiedTimeMillis=" + fileAttributes.lastModifiedTime().toMillis() +
        ", size=" + fileAttributes.size() +
        ", owner='" + fileAttributes.owner() + '\'' +
        ", group='" + fileAttributes.group() + '\'' +
        ", permissions=" + PosixFilePermissions.toString(fileAttributes.permissions()) +
        '}';
  }
Builds a {@link DirDiff} from a new local directory that is not already present in the remote snapshot.
@param localSubDir File representing the local directory to create the new {@link DirDiff} for.
samza-core/src/main/java/org/apache/samza/storage/blobstore/util/DirDiffUtil.java