I remember seeing this before but the dot to me always represented the root of the directory tree where .. is the previous branch. What's going on here why does . not jump to root?
The double dot
.. represents the present working directory's (the
PWD's) parent directory, while the single dot
. represents the PWD itself. This is useful for creating a path from a filename, which for some use cases (such as yours) may be required.
If you give i.e. your database driver only a simple
filename (
accessdbfile.mdb), there's no way to tell where it'll end up looking for (and perhaps failing to find) it; it
may be programmed to go through some hard-coded folders and never consider the PWD at all. But if you specify a
path instead (
./accessdbfile.mdb), this ambiguity is gone: you've explicitly
told it to start at the present working directory (.) and start looking from there.