[Vm-dev] Extending primitiveDirectoryEntry

tim Rowledge tim at rowledge.org
Mon Apr 24 16:46:59 UTC 2017


You might need to check your assumptions here. Different OSs have different ideas about what - or even *if* - a current working directory means. 

You also need to consider the *intent* of such paths. Setting a default to the directory in which the image was found may or may not make sense; what if it is a default image installed in some place that is not intended for general user storage?  What if it is reached via an alias so any attempt to find the parent directory results in a very  strange seeming result?

Caching such things can be fraught with pain too. Is it plausible that the actual working directory you thought was at wibble/foo/gerbil/cardboard-tube has been reset since you found that? What if the user or some administration process moves things around whilst you are running?

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- Mind like a steel sieve.




More information about the Vm-dev mailing list