xcode - NSFileSystemFileNumber is changed after file is edited/updated in objective c -


i working on file management system dropbox in cocoa.

my problem when edit text file @ time nsfilesystemfilenumber changed.

i want unique nsfilesystemfilenumber if edited file moved particular folder.

in short, want know how fetch moved file's old or original path database.

any alternate way solve out problem?

thanks in adv..!!

it depends on how editor save functionality implemented. each editor have different functionality , sounds 1 using following:

  1. delete existing file.
  2. create new file.
  3. write file data.

hence new inode each time. others might:

  1. truncate existing file.
  2. write file data.

which result in same inode each time.

there nothing can need track file changes using name or something, not inode.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -