def archive_pathname(file_pathname)
      path = Pathname.new(archive_directory)
      path = file_pathname.dirname.join(archive_directory) if path.relative?

      begin
        path.mkpath unless path.exist?
      rescue Errno::ENOENT => exc
        raise(Errno::ENOENT, "DirmonJob failed to create archive directory: #{path}, #{exc.message}")
      end
      path.realpath
    end
def archive_pathname(file_pathname)
      path = Pathname.new(archive_directory)
      path = file_pathname.dirname.join(archive_directory) if path.relative?

      begin
        path.mkpath unless path.exist?
      rescue Errno::ENOENT => exc
        raise(Errno::ENOENT, "DirmonJob failed to create archive directory: #{path}, #{exc.message}")
      end
      path.realpath
    end
Returns [Pathname] to the archive directory, and creates it if it does not exist.

 If `archive_directory` is a relative path, it is appended to the `file_pathname`.
 If `archive_directory` is an absolute path, it is returned as-is.