Sha256: 71b2f914a164e9ff36f9bb6a65e3b6bd389e87ac92f147e4c79aa0867b86ef05

Contents?: true

Size: 392 Bytes

Versions: 87

Compression:

Stored size: 392 Bytes

Contents

require 'fileutils'

module FileUtils
  class << self
    # Override mv to avoid several bugs (Errno::EACCES in Windows, Errno::ENOENT
    #   with relative softlinks on Linux), by forcing to copy and delete instead
    #
    # @see {FileUtils::mv}
    # @see {safe_mv}
    def mv(src, dest, options = {})
      FileUtils.cp_r(src, dest, options)
      FileUtils.rm_rf(src)
    end
  end
end

Version data entries

87 entries across 87 versions & 2 rubygems

Version Path
berkshelf-3.1.5 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.1.4 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.18 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.17 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.1.3 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.1.2 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.16 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.1.1 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.1.0 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.1 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.15 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.rc1 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta9 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta8 lib/berkshelf/core_ext/file_utils.rb
transcriptic-0.2.10 lib/transcriptic/core_ext/file_utils.rb
berkshelf-3.0.0.beta7 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta6 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.14 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta5 lib/berkshelf/core_ext/file_utils.rb