Your best friend for file transfer.

Fetch application logoFetch

If I "edit" a file in Fetch 5.7.4 how do I deal with the possibility of other people editi (3 posts)

  • Started 8 years ago by philip
  • Latest reply 8 years ago from philip
  • philip Member

    If I "edit" a file in Fetch 5.7.4 how do I deal with the possibility of other people editing the same file in between the time I start editing it and the time I decide I've finished and "save" it.

    I am in a situation where this is very likely to happen.

    Is there a mechanism or technique in Fetch to prevent this?

    Posted 8 years ago #

  • Jim Matthews Administrator

    Hi,

    That's an excellent question. The answer is that there isn't a technical mechanism in Fetch to prevent two people from editing a file at the same time. In that situation whoever saved last would have the last word.

    I would recommend using some other coordination strategy. For example, you could rename the file (e.g. rename "file.txt" to "file-philip.txt") before editing, and rename it back after you are done. That would signal to others that the file is currently being edited.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 8 years ago #

  • philip Member

    Thanks for that, Jim. Your suggestion won't work in my case, where the "other people" are multiple PHP scripts that are seeking a particularly-named file to append text to, and so things would go very wrong if I changed the filename!

    The good news is, when I "Edit" a file on the server, I'm not really editing it at all (but only working on a local copy downloaded to my Mac) so those scripts won't be 'locked out' for the duration of my editing session (as I had feared they might). They can do what they're supposed to when they're ready to!

    The bad news is that I can't safely "Save" any edits I make, so I have to readjust my strategy in that regard.

    Thanks for your prompt response.

    Posted 8 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.