| madflojo | ah ya good point |
| revdiablo | JasonKing: Yes, but there are variables that I don't see being defined in that code JasonKing: I don't know what's in those variables, hence it's not a standalone example |
| JasonKing | revdiablo, right, but $filename must have a value, otherwise $oldlocation (also output in the error) would end in a '/'; revdiablo, meaning that $NewDir must be $newlocation less $filename. |
| revdiablo | Yes, ok, fair enough |
| madflojo | sorry was at the door |
| JasonKing | madflojo, could $filename include more than just the filename, eg. could it be: Eminem/The Marshall Mathers LP/Jeff Bass - Public Service Announcement 2000.mp3 |
| madflojo | well let me print them better to doublecheck it shouldnt be |
| narutosan | Khisanth: But is Placeholders so much necessary?? |
| hobbs | JasonKing: error message points to no narutosan: yes. |
| madflojo | actually |
| Khisanth | well I kinda like code that doesn't break due to arbitrary user input |
| JasonKing | hobbs, sure - but the error message only makes sense if madflojo is nuts and the whole string *does* point to a directory - which he assures us it doesn't. |
| madflojo | filename is printed infront of the Cannot be copied |
| Khisanth | I have wanted to strangle coworkers on a few occasions for that |
| madflojo | Jeff_Bass_-_Public_Service_Announcement_2000.mp3 |
| JasonKing | madflojo, ah yes, so it is. |
| revdiablo | Is the value in $! just noise? That's only reliable if you've just recieved a false return value from certain builtins |
| madflojo | thats the value of $filename |
| JasonKing | revdiablo, yeah, good point. |
| madflojo | I was willing to accept the $! is just noise like rev just said |
| hobbs | revdiablo: the perldoc says it's okay |
| madflojo | i think the move is erroring because the directory doesnt exist BUT |
| revdiablo | hobbs: What's setting it in his code? |
| hobbs | revdiablo: File::Copy::move |
| madflojo | as you see by the code i try and use mkpath to create the directory |
| action | merlyn has a brain of mush |
| merlyn | has a brain of mush |
| revdiablo | Oh, right. I was overlooking the move() call |
| madflojo | if you guys want i can paste you the whole script |
| rhizo | ? ? ? ? ? ? |
| madflojo | if it makes it any easier |
| Khisanth | merlyn: isn't a non mushy brain a bad thing? |
| merlyn | perhaps |