http://qs1969.pair.com?node_id=1014579


in reply to Re^7: Uniquely identifying each & every html template
in thread Uniquely identifying each & every html template

You are right. What i ask cannot be done.

so, i guess i have to decide if the identifier will be the "filepath" or the "hash" (based on file's contents)

Which method do you advise me to use?
  • Comment on Re^8: Uniquely identifying each & every html template

Replies are listed 'Best First'.
Re^9: Uniquely identifying each & every html template
by BrowserUk (Patriarch) on Jan 22, 2013 at 07:03 UTC
    Which method do you advise me to use?

    Seems to me that file contents is likely to change far more often than filepath. And applications that edit contents tend to retain the same name for the edited file.

    Plus, even if you copied a file verbatim to a different path, they are no longer the same file as they are likely to be parts of different applications and/or websites. As such, the contents are likely to diverge over time as the separate apps/sites change.

    In short, I'd use the filepath.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thank you for all your help you provided me! Let's just hope i can code this.
Re^9: Uniquely identifying each & every html template
by choroba (Cardinal) on Jan 22, 2013 at 09:43 UTC
    Well, what about a version control system? SVN or git can track files as they are moved around, because you do not use the system's mv, but rather the VCS's variant of the same.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ