Bug in getDirectory("current")?

I have noticed that getDirectory("current") often directs to the last location that a file was saved, rather than the location of the script from which it is being run.

What am I not understanding, or it this in fact a bug?