About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 10 days, 12 hours, 30 minutes, 27 seconds
  • October Ends: in 11 days, 12 hours, 42 minutes, 27 seconds
  • Ludum Dare 31 begins: in 46 days, 13 hours, 30 minutes, 27 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]

    Forgetting to use -r and not looking at the output

    Posted by
    August 25th, 2012 7:06 pm

    [ryland@crappy projects]$ cp Pickachick pickachick
    cp: omitting directory `Pickachick’
    [ryland@crappy projects]$ rm -r Pickachick
    [ryland@crappy projects]$


    That’s how I lost 5 hours of work. Luckily I still have an older version of the game, but I’ve put in a lot of work since that version. I was trying to rename the directory from Pickachick to pickachick. I realize now that I could’ve just used mv, but I’ve been programming for a long time, I’m not thinking straight.

    For anyone not familiar with linux commands, cp is a command to copy a file or directory, however, it only copies directories with the -r switch. I forgot the -r, and the directory wasn’t copied. Then I deleted the folder completely with the rm (remove) command.

    2 Responses to “Forgetting to use -r and not looking at the output”

    1. SethR says:

      Ouch.. been there man, feel for ya

    Leave a Reply

    You must be logged in to post a comment.

    All posts, images, and comments are owned by their creators.

    [cache: storing page]