Your best friend for file transfer.

Fetch application logoFetch

Upload an update (4 posts)

  • Started 3 years ago by Antonio
  • Latest reply 3 years ago from Jim Matthews
  • Antonio Member

    Hi,

    How does Fetch work with update packages ?
    Let’s assume that we have a full script in the target, and we try to send a package (upgrade) with just some files and folders.
    Can we drop that package (upgrade) on root and fetch will update the target files and folders ?
    If in the destination path the same directory exist will Fetch change all the destination folder with the source folder or just change the files inside the target folder and sub-folders ?

    Does Fetch compare the source and target files date, time or size ?
    How does he do it ?

    Basically can we use Fetch to automatically update a script with the new added or changed files and folders ?

    Thanks a lot

    Posted 3 years ago #

  • Jim Matthews Administrator

    Hi,

    When you upload a folder, and the folder already exists on the server, Fetch does not erase the existing folder. Instead it merges the folder being updated with what is already on the server.

    For example, if you upload a folder named "myfolder" that contains files named "a" and "b", and there's already a folder on the server named "myfolder" with files named "b" and "c", the result will be folder named "myfolder" with files "a", "b", and "c". The "b" file that was on the server will have been overwritten by the uploaded "b" file.

    The Mirror command lets you upload only files that are newer than what is on the server, and optionally delete "stray" files that don't exist on your Mac. For more information, see https://fetchsoftworks.com/fetch/help/Contents/Commands/Mirror.html .

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 3 years ago #

  • Antonio Member

    Hi Jim Matthews,

    Thanks for your reply.

    "For example, if you upload a folder named "myfolder" that contains files named "a" and "b", and there's already a folder on the server named "myfolder" with files named "b" and "c", the result will be folder named "myfolder" with files "a", "b", and "c". The "b" file that was on the server will have been overwritten by the uploaded "b" file."

    Will this logic also work in a path ?
    Lets say that we have this path:

    folder_1>folder_2>folder_3

    and inside folder_2 we have folder_2A and other files

    if I drop folder_1 will Fetch follow the path and update the corresponding files and folders inside folder_2 ?

    Thanks a lot

    Posted 3 years ago #

  • Jim Matthews Administrator

    Yes, the same logic holds for folders inside folders.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 3 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.