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-2.0.13 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.12 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.11 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta4 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta3 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.10 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.9 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.8 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta2 lib/berkshelf/core_ext/file_utils.rb
berkshelf-3.0.0.beta1 lib/berkshelf/core_ext/file_utils.rb
berkshelf-2.0.7 lib/berkshelf/core_ext/file_utils.rb
transcriptic-0.2.5 lib/transcriptic/core_ext/file_utils.rb
berkshelf-2.0.6 lib/berkshelf/core_ext/file_utils.rb
transcriptic-0.2.4 lib/transcriptic/core_ext/file_utils.rb
transcriptic-0.2.3 lib/transcriptic/core_ext/file_utils.rb
transcriptic-0.2.2 lib/transcriptic/core_ext/file_utils.rb
berkshelf-2.0.5 lib/berkshelf/core_ext/file_utils.rb
transcriptic-0.2.1 lib/transcriptic/core_ext/file_utils.rb
transcriptic-0.2.0 lib/transcriptic/core_ext/file_utils.rb
berkshelf-2.0.4 lib/berkshelf/core_ext/file_utils.rb