Skip to content

Instantly share code, notes, and snippets.

@bringhurst
Created November 5, 2014 19:11
Show Gist options
  • Save bringhurst/27e9ac4895b77b29077a to your computer and use it in GitHub Desktop.
Save bringhurst/27e9ac4895b77b29077a to your computer and use it in GitHub Desktop.
dcp exists at dest
if(is_file(last_argument) {
last_argument_is_file = true
last_argument_is_dir = false
} elif( is_dir(last_argument) {
last_argument_is_dir = true
last_argument_is_file = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment