MCPcopy Create free account
hub / github.com/apache/arrow / copy_artifact

Method copy_artifact

dev/release/binary-task.rb:1329–1340  ·  view source on GitHub ↗
(source_path,
                    destination_path,
                    progress_reporter)

Source from the content-addressed store, hash-verified

1327 end
1328
1329 def copy_artifact(source_path,
1330 destination_path,
1331 progress_reporter)
1332 return if same_content?(source_path, destination_path)
1333 progress_reporter.increment_max
1334 destination_dir = File.dirname(destination_path)
1335 unless File.exist?(destination_dir)
1336 mkdir_p(destination_dir, verbose: verbose?)
1337 end
1338 cp(source_path, destination_path, verbose: verbose?)
1339 progress_reporter.advance
1340 end
1341
1342 def prepare_staging(base_path)
1343 client = ArtifactoryClient.new(nil, artifactory_api_key)

Callers

nothing calls this directly

Calls 3

increment_maxMethod · 0.80
exist?Method · 0.80
advanceMethod · 0.45

Tested by

no test coverage detected