Some notes on names vs. IDs:

Using the absolute path to identify a file is what happens e.g. with a FAT filesystem.

Many filesystems that have a Unix history (Unix File System, MINIX file system, Extended file system family, ...) identify each file by a numeric ID. (See also inode.) Directories are just special files that associate names with file IDs.

One quite obvious difference is that the file ID does not change when you move or rename a file.

Another major difference of the numeric ID is that files can have zero or more names. Having no name for a file is useful for private temporary files. There is simply no way to access them except by having an open file handle. Having more than one name for a file is generally known as hardlink, and allows to refer the same file from different directories using different names. This is used e.g. by BusyBox.

On FAT filesystems, having more than one name for the same file is generally considered a filesystem error.

(Note that Windows Long filename support a.k.a. VFAT adds an optional alias for each part of the path. Both the short and long filenames still have to be unique. Both can be used interchangeably for each part of the path.)

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^2: How to represent the filesystem in DS? by afoken
in thread How to represent the filesystem in DS? by ovedpo15

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.