Your best friend for file transfer.

Fetch application logoFetch

Uploading changed files without overwriting entire folder. (11 posts)

  • Started 17 years ago by JimFusco
  • Latest reply 16 years ago from Scott McGuire
  • JimFusco Member

    Hello! I'm using Fetch on a Macbook.

    The only way I can describe my problem is through an example:

    On my server, I have a folder called "admin". This folder has about 50 files in it.

    On my desktop, I also have a folder called "admin". This folder has only about 10 files, some that are meant to overwrite the same files on my server.

    However, when I upload the "admin" folder, it just replaces my 50 file folder with the 10 file folder on my desktop!

    I understand that, but how can I just upload those certain files without uploading each individual file? Is there even a way? The files on my desktop may not be newer necessarily (it's a plugin for a shopping cart program). Thanks for any advice!

    Jim

    Posted 17 years ago #

  • Scott McGuire Administrator

    Hi Jim,

    Could you please confirm that I've understood your question correctly before I try to answer it?

    First, if you have a folder on the server with 50 items in it, and you upload a folder of the same name with 10 items in it, after you upload the server folder should still have 50 items in it.

    Fetch should only overwrite or add the 10 new files you're uploading - it should leave the other 40 items in the folder unchanged. Are you actually seeing Fetch remove the other 40 items that were not in the folder the second time you upload the folder?

    And second, what you're saying is you have 10 items, only some of which have changed (say 5 of them), and when you upload the folder, you'd like to have Fetch be smart and only upload the 5 new ones, not the other 5 that haven't changed?

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 17 years ago #

  • JimFusco Member

    Hi Scott! Thanks for the reply. Actually, yes. The "admin" folder I uploaded actually replaced the "admin" folder on my web server.

    About the changed files, all I'm trying to say is this:

    I want to replace the files on my web server with the files I'm uploading, regardless of whether or not they're newer. Let me be more specific:

    Admin folder on my web server has:

    Backups folder
    Images folder
    Includes folder
    About 50 php files--all modified yesterday because that's when I originally uploaded them.

    Admin folder on my hard drive has:

    Includes folder
    About 5 php files with the same names as files already there. All these files have varying modified dates because I downloaded them from another person who wrote them.

    I hope this helps. If not, feel free to ask me again!

    Jim

    Posted 17 years ago #

  • Scott McGuire Administrator

    Hi Jim,

    Hmm, let me try again.

    So what you'd like Fetch to stop doing is replacing the entire folder? You want it to leave the existing files alone?

    If that's not it, what is it that Fetch is doing now that you'd like it to stop doing?

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 17 years ago #

  • JimFusco Member

    Yes, Scott- you got it! How do I make it keep the original files, too?

    Posted 17 years ago #

  • Scott McGuire Administrator

    Hi Jim,

    As I said before, Fetch is always supposed to keep the original contents, not replace them... which is probably why I was confused! So we need to figure out why it's not doing that.

    Are you using the Put, or are you using Mirror to upload the folder?

    Could you upload a folder that has the same name as one on the server (but less files), and then please choose Fetch Transcript from the Window menu, copy the entire contents of the transcript window, and paste them here?

    We'll take a look and see if we can figure out what's going on.

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 17 years ago #

  • JimFusco Member

    Thanks Scott- I'll post tonight.

    Posted 17 years ago #

  • JimFusco Member

    Hey Scott- I was waiting for some updates to the files I need to upload, so it should be this weekend when I can test it. But, just out of curiosity, should I be using the "put" function? I mean, I just drag and drop. I'm thinking (just to be safe) that I'll go through each of the files and upload individually. I'm sure it was just a fluke before, but it took so long to set up the shopping cart again that I really don't want to take any chances.

    Jim

    Posted 17 years ago #

  • Scott McGuire Administrator

    Hi Jim,

    Just dragging and dropping is the same as using the Put command, so no, just keep on dragging and dropping.

    (You get a few more options when you use the Put command, but nothing that would affect what you're doing as far as I can tell.)

    The Mirror command, however, behaves differently from Put/drag-and-drop, and I just wanted to make sure we weren't talking about mirroring.

    If you want to test the whether Fetch replaces the entire folder or not, instead of trying it on your big (and important) shopping cart folder, I'd create a folder on your Macintosh that had about 10 small text files in it, upload the folder, and then remove half of the files from the local copy of the folder, and upload the folder again - then seen how many files you end up with in the server copy of the folder. And then you can delete the test folder from the server. That would be a lot quicker, and safer, than trying with the shopping cart folder.

    Best,

    Scott McGuire
    Fetch Softworks

    Posted 17 years ago #

  • justinbaeder Member

    I'm very, very glad Fetch has this feature - it's critical for upgrading WordPress without killing all the files you've uploaded that aren't part of WP. Thanks! You just won a new customer - I was using ForkLift, but it doesn't support this feature.

    Posted 16 years ago #

  • Scott McGuire Administrator

    Originally posted by justinbaeder:

    I'm very, very glad Fetch has this feature - it's critical for upgrading WordPress without killing all the files you've uploaded that aren't part of WP. Thanks! You just won a new customer - I was using ForkLift, but it doesn't support this feature.

    You're welcome, and thanks for the feedback!

    Best,

    Scott McGuire
    Fetch Softworks

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