Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I hear that a lot, but I familiarized myself with it once and ever since it makes a lot of sense to me.

Source ending in “/“: You want what’s inside. Source not ending in “/“: You want the thing (i.e. directory itself). For the destination, it does not matter whether it ends in “/“ or not, but for consistency I like adding a “/“ anyway (I want to put thing inside the directory).



Yes, the nice thing about dest having a trailing "/" is that if it exists and is NOT a directory, you are alerted right away.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: