For me, a path was always something that “walks the way to something”, but without the “something”.
Like a chicken following bread crumbs until it hits the target. But the target is not part of the path. That’s what I believe.
So, example: C:/foo/bar = the path. C:/foo/bar/something.html = Path and the “Target”.
Can someone tell me what are the correct terms here? How do I call such a path with file?
“Full path”?
“Full qualified path”?
“Path with File Name”? (not precise! “Path with File Name and Extension” … way too long)
Sure there’s a special name for this. Want to know! 🙂
Nice chicken example… I think you mean absolute path
but, It doesn’t matter what the path points to, be it a directory, file, device or otherwise
Wikipedia says:
It doesn’t even require an extension, as other mechanisms work out the filetype.
/foo/bar/file.txt= Absolute path/foo/bar= An absolute path to a directory../foo= A relative path to a directory, from current directory./file.txt= A relative path to a file, from current directory (Unix)file.txt= A relative path tooAlso
The distinction between files and directories isn’t catered for with a path. A path is always a path to something, be it a file or a directory:
/a/b/cis the path tocregardless of what type (file, directory, device) the end point is.Also checkout basenames