Class FileUtils.FileCopyResult

  • Enclosing class:
    FileUtils

    public static class FileUtils.FileCopyResult
    extends Object
    Keeps results of a file copy, including children and total size of the resultant files. This class is NOT thread safe. Child size is eagerly calculated and any modifications to the file after the child is added are not accounted for. As such, this result should be considered immutable, even though it has no way to force that property on the files.
    • Constructor Detail

      • FileCopyResult

        public FileCopyResult​(File... files)
    • Method Detail

      • size

        public long size()
      • addSizedFiles

        protected void addSizedFiles​(Collection<File> files)
      • addFile

        public void addFile​(File file)