Skip to content

Instantly share code, notes, and snippets.

@kotp
Forked from anonymous/gist:1528862
Created December 28, 2011 17:53
Show Gist options
  • Save kotp/1528866 to your computer and use it in GitHub Desktop.
Save kotp/1528866 to your computer and use it in GitHub Desktop.
move file
# require FileUtils
require 'fileutils'
FileUtils.mv 'test.txt', 'test1.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment