Yes, absolutely.
The golden rule of programming is never strict code string literals.
Change One of the best ways to avoid migration problems is to avoid specific OS constants, especially in the form of embedded literals.
ie for example, drive + ": /" + path + "/" + file name
It is still bad practice. We all commit these horrors in a hurry of the moment or because it is not important for this part of the code. The file :: Spec exists when a programmer adheres to gospel programming.
In addition, it provides values ββfor special and commonly used system directories, for example, tmp or devnull, which can vary from one distribution / OS to another.
If something is possible, perhaps with some other members added to it as a user to point to the users home directory
source share