Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart / Magic Uploads (Limited or Partial Synchronization) #932

Closed
cyberduck opened this issue Oct 18, 2006 · 1 comment
Closed

Smart / Magic Uploads (Limited or Partial Synchronization) #932

cyberduck opened this issue Oct 18, 2006 · 1 comment

Comments

@cyberduck
Copy link
Collaborator

8fbae90 created the issue

This is probably going to be related to the solution for #158, however, this is definitely not a duplicate. It's related in so much that this feature will require supporting the "local download folder" that #158 would add as a bookmark setting, and then will build on it with additional functionality.

Basically, I would like to see a feature like Interarchy's "Auto-Upload" bookmarks. (It could be called Smart-Sync or Magic Uploads or some such, which I think would be a better name than Auto-Uploads anyway, since there's nothing especially "automatic" about them other than determining a path component.)

If you are not familiar with them, you set up a special bookmark that keeps track of a remote site (including folder path) and matches that folder to a local folder... much like synchronization does, but keeping the setting in the bookmark.

However, instead of synchronizing every file, only files dragged onto the application icon (or for Cyberduck, I would hope the bookmark icon as well) are uploaded to their relative positions on the server. - It's a kind of "limited" or "partial" sync, if you want to look at it that way. (Hmm, "PODS"? Partial, On-Demand Sync? ... Well, I dunno. But something memorable and descriptive.)

If that isn't clear, take as example the following site mapping for one of these new "Magic Upload" bookmarks:

Remote server: ftp.example.com
Remote path: /var/www/
Local path: /Users/james/Sites/Devel/example.com/

The remote folder currently has only an index file, like so:

/var/
    www/
        index.html

And say the local folder's hierarchy looks like this:

... (parent path components) ...
example.com/
    index.html
    img/
        logo.png
        homepghdr.jpg
        photos/
            trip01.jpg
            family01.jpg
            ...
    js/
        main.js
        dom.js
        ...
    help.html
    contact.html
    ...

When I drag the 2 files /Users/james/Sites/Devel/example.com/img/photos/family01.jpg and /Users/james/Sites/Devel/example.com/js/dom.js onto the Dock icon, Cyberduck (and all other FTP clients, except Interarchy in Auto-Upload mode) currently uploads them creating the following site structure:

/var/
    www/
        index.html
        family01.jpg
        dom.js

This is all well and good if that's what you want, of course. But it isn't always what you want to have happen.

What the new "PODS" or "Magic Upload" setting would do is look at the two base folders (remote and local) of the bookmark and use them as a common reference point for doing our limited sync operation ... "magically" producing the following folder structure:

/var/
    www/
        index.html
        img/
            photos/
                family01.jpg
        js/
            dom.js

Of course, any file outside of the local folder hierarchy (one that's on your Desktop, for instance) would treat the connection / bookmark as a normal connection.

So, if I then dragged the file /Users/james/Desktop/newphoto03.jpg onto the bookmark or Dock icon, the file would be placed in the current working directory on the server as usually happens, and thereby produce this structure:

/var/
    www/
        index.html
        img/
            photos/
                family01.jpg
        js/
            dom.js
        newphoto03.jpg

I hope that makes sense, and that you will work to implement this feature in an upcoming release. I think it would be of great use to any number of users. For myself, it is nearly the only reason I paid for the Interarchy 7 upgrade back when that version came out. And I would love to use Cyberduck instead, since I prefer OSS anyway - but I simply can't make myself leave this one feature behind after having used it for so long now. :-)

Even though I don't often use Cyberduck at the current time, I would be more than happy (ecstatic, really) to help test out this feature if you start working on it. - In fact, I'd be happy to help code it, if I can be of any assistance at all... but I'm really a PERL / AppleScript coder, not an Obj-C coder, so that I doubt I'll be of that much use in respect to the actual code. - Well, not unless you want someone along just to slow you down, that is! ;-)

Thank you!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I think this kind of works if yo set the Default Path of a bookmark.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants