summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/uploads_restorer.rb
blob: df19354b76ea0c2e9eb33e236bda25d1d4ab8c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Gitlab
  module ImportExport
    class UploadsRestorer < UploadsSaver
      def restore
        return true unless File.directory?(uploads_export_path)

        copy_files(uploads_export_path, uploads_path)
      rescue => e
        @shared.error(e)
        false
      end
    end
  end
end