Author Topic: Using Mac OS X Aliases? Does this make sense?  (Read 3494 times)

corourke

  • Jr. Member
  • **
  • Posts: 5
Using Mac OS X Aliases? Does this make sense?
« on: January 16, 2007, 08:17:05 PM »
Greetings,

Is there a preference that will force Yummy FTP to navigate my local Mac OS X aliases as if they were UNIX soft links?

Would this make sense to do?

I'm trying to mirror a site on my local hard drive, but my source files for the site are arranged in a manner that is very different from the site hierarchy. So... I thought: Why not create a bunch of aliases in my local mirror that point to the local source files?

Unfortunately, this does not work, FTP just copies the aliases themselves.

Is there another way to accomplish what I'm trying to do (mirror/sync my local files and site, which have different hierarchies.)

Thanks,
Cameron


JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Using Mac OS X Aliases? Does this make sense?
« Reply #1 on: January 17, 2007, 05:14:47 AM »
Yummy won't navigate into Mac aliases or UNIX links when performing any transfers, synchs included. The reason for this is that it is all too easy to end up getting into a loop, where an alias points to a parent folder, since Yummy follows through all the directory structure. I guess that if you were very careful then navigation into aliases/links could be used in the way you have described, but currently Yummy doesn't support that and instead expects the local and remote directory structures to be similar, but not necessarily identical.

I'll see what happens if I allow this behavior in Yummy FTP. If it works out well, I'll add an option for it in the Preferences, but the option will be off by default.

corourke

  • Jr. Member
  • **
  • Posts: 5
Re: Using Mac OS X Aliases? Does this make sense?
« Reply #2 on: January 17, 2007, 09:50:00 AM »
I can see a problem with this in that, after an upload, your client and server directories are not in "sync" because the local dir contains aliases and the remote dir contains files. Unless, when downloading/sync'ing you also looked through the alias going the other way. Which is starting to confuse even me!

I could try it with softlinks and see how it works out. The best option might just be to maintain a separate local mirror, and use scripts to keep things straight locally.

--Cameron

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Using Mac OS X Aliases? Does this make sense?
« Reply #3 on: January 17, 2007, 10:09:10 AM »
Well, the idea would be that Yummy should treat symlinks or aliases as though they were real folders, so yes it would work both ways. I think it should work, but I didn't yet investigate... I'll report back when I do :)

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Using Mac OS X Aliases? Does this make sense?
« Reply #4 on: January 19, 2007, 07:42:28 AM »
Unfortunately it's not quite as simple as I first imagined, as there are lots of special cases I'd have to take care of, so I can't provide something for you quickly. However, I'll add this to my To Do list for a future version, because it is undoubtedly something that would be useful to have implemented.