Cd() directory out of C:\\ or D:\\

Do you mean .. and not ...?

Since D:\ is a root path, why would D:\.. exist?

joinpath creates a path out of components, e.g. joinpath("D:", "home") makes D:\home