ディレクトリの中身だけコピーしたい時
FileUtils.cp_r("hoge/*","foo/") # これではだめ
FileUtils.cp_r(Dir.glob("hoge/*"),"foo/") #こうすれば同じ結果が得られる
Go to list of users who liked
More than 5 years have passed since last update.
ディレクトリの中身だけコピーしたい時
FileUtils.cp_r("hoge/*","foo/") # これではだめ
FileUtils.cp_r(Dir.glob("hoge/*"),"foo/") #こうすれば同じ結果が得られる
Register as a new user and use Qiita more conveniently
Go to list of users who liked