in reply to Re^2: mkdir in loop - overwrite danger?
in thread mkdir in loop - overwrite danger?

I did consider that, but got lazy; replacing ls with glob meant also having to split off the basename of the file from the path. I liked the simplicity.

Update: having looked at this again, I see glob returning file names only if that path is not included. That makes for a more portable solution.

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)
  • Comment on Re^3: mkdir in loop - overwrite danger?