Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/rake_tasks/crazy_fun/mappings/file_copy_hack.rb
2868 views
1
module CrazyFun
2
module Mappings
3
module FileCopyHack
4
def cp_r(src, dest, opts = {})
5
super
6
rescue => ex
7
raise unless ex.message =~ /operation not permitted|Permission denied/i
8
Dir["#{dest}/**/.svn"].each { |file| rm_rf file }
9
10
# virtual box shared folders has a problem with some of the .svn files
11
if ENV['USER'] == "vagrant" && opts.empty?
12
sh "cp", "-r", src, dest
13
else
14
super(src, dest, opts)
15
end
16
end
17
end
18
end
19
end
20
21