Skip to content

Commit

Permalink
Spec path.i (for unique path identifier)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 22, 2015
1 parent f907cb8 commit 47aab48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S16-io.pod
Expand Up @@ -307,6 +307,7 @@ the C<IOU> class):
e exists
s size of the $!path of $io in bytes
z has zero size (an empty file)
i unique identifier for path, if available (usually inode)

f is a plain file (also ~~ IO::File)
d is a directory (also ~~ IO::Dir)
Expand Down

2 comments on commit 47aab48

@labster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An inode alone is not a unique identifier for the resource at a given path, because multiple devices can be mounted. Each device has its own inode numbers.

Do you plan to make a unique identifier by adding the device number, or add a separate device lookup? Maybe a method called any qw(.v .dev device)?

@lizmat
Copy link
Contributor Author

@lizmat lizmat commented on 47aab48 Jan 24, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.