• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating unique numerical representation of file path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating unique numerical representation of file path?


  • Subject: Re: Creating unique numerical representation of file path?
  • From: Andrei Tchijov <email@hidden>
  • Date: Sat, 13 Oct 2007 20:43:00 -0400

good point. though it may be viewed as an extra benefit -- if you do not want to import multiple links to the same file.

On Oct 13, 2007, at 8:35 PM, Mark J. Reed wrote:

Also,it's worth noting that inodes represent the file, not the path to
the file.  In UNIX filesystems a given file may appear under multiple
pathnames.  Aside from the standard "." and ".." entries in
directories, hard links aren't much used, so it's not likely to be a
problem in practice, but worth knowing.

Example:

$ echo Hello >hello1.txt
$ ln hello1.txt hello2.txt
$ cat hello2.txt
Hello
$ ls -1i hello?.txt
7128053 hello1.txt
7128053 hello2.txt
$ echo goodbye >hello2.txt
$ cat hello1.txt
goodbye


On 10/13/07, Mark J. Reed <email@hidden> wrote:
Inode numbers are per-filesystem. The root folder of each volume will
be inode number 2, for instance.




--
Mark J. Reed <email@hidden>

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Creating unique numerical representation of file path? (From: Richard Rönnbäck <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: deivy petrescu <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: Philip Aker <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: Andrei Tchijov <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: Philip Aker <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: "Mark J. Reed" <email@hidden>)
 >Re: Creating unique numerical representation of file path? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Creating unique numerical representation of file path?
  • Next by Date: Re: Creating unique numerical representation of file path?
  • Previous by thread: Re: Creating unique numerical representation of file path?
  • Next by thread: Re: Creating unique numerical representation of file path?
  • Index(es):
    • Date
    • Thread