What's a “canonical path”?

后端 未结 4 1037
青春惊慌失措
青春惊慌失措 2020-12-22 18:54

So, an absolute path it\'s a way to get to a certain file or location describing the full route to it, the full path, and it\'s OS dependent (the absolute paths for Windows

4条回答
  •  借酒劲吻你
    2020-12-22 19:53

    A good way to define a canonical path will be: the shortest absolute path (short, in the meaning of string-length).

    This is an example of the difference between an absolute path and a canonical path:

    absolute path: C:\abc\..\abc\file.txt
    canonical path: C:\abc\file.txt

提交回复
热议问题