summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/uploads_saver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/uploads_saver.rb')
-rw-r--r--lib/gitlab/import_export/uploads_saver.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/gitlab/import_export/uploads_saver.rb b/lib/gitlab/import_export/uploads_saver.rb
index 2f08dda55fd..9cdd015d82a 100644
--- a/lib/gitlab/import_export/uploads_saver.rb
+++ b/lib/gitlab/import_export/uploads_saver.rb
@@ -9,21 +9,14 @@ module Gitlab
end
def save
- return true unless File.directory?(uploads_path)
-
- copy_files(uploads_path, uploads_export_path)
+ Gitlab::ImportExport::UploadsManager.new(
+ project: @project,
+ shared: @shared,
+ ).copy
rescue => e
@shared.error(e)
false
end
-
- def uploads_path
- FileUploader.absolute_base_dir(@project)
- end
-
- def uploads_export_path
- File.join(@shared.export_path, 'uploads')
- end
end
end
end