Share files at arbitrary locations by Dropbox

3

I would like to have a terminal tool which would allow me to share files at arbitrary locations by Dropbox. For instance, by

dropbox /users/cs/python/codes/1.py

This should share the file at the given location.

Let's assume that we have the file 1.html at ~/Dropbox/public. It has a link to the file which dropbox above.

This suggests me that the Dropboxed-files should be also at the public folder. However, the name of the file in the Dropbox folder should suggests Dropbox to get data from the given location.

I am not sure whether this is possible or not: My point is to have a code in the filename such that Dropbox could fetch the data from the given location after reading the filename.

How can you share files at arbitrary locations by Dropbox?

Léo Léopold Hertz 준영

Posted 2009-07-24T21:37:48.127

Reputation: 4 828

Dropbox retired public folders on March 15, 2017, meaning most of the answers below no longer apply.

– Stevoisiak – 2017-05-08T15:12:46.480

1@StevenVascellaro Thank you for the notice! This question is not about public folders however, but the location of your Dropbox files in your filesystem. - - It is good that Dropbox disables the feature because there are so much problems in Dropbox itself. – Léo Léopold Hertz 준영 – 2017-05-08T16:10:52.300

Answers

9

I can't understand exactly what you're asking, but if you want to have files show up in the Dropbox Public folder and also be somewhere else in the filesystem, it looks like the only option for now is hard links (on *nix operating systems, including OS X):

ln /users/cs/python/codes/1.py ~/Dropbox/Public/

That will create a 1.py file in ~/Dropbox/Public which will be another link to the same file on the filesystem, though it will look like another file. This means you can access the file the same way, and any changes you make to one will be the same with the other (since they're accessing the same location on disk). You can later delete the link in the ~/Dropbox/Public folder, and the other one will still work. Take note: if you delete one of the links and recreate the file there, they will no longer be pointing to the same location on disk.

jtbandes

Posted 2009-07-24T21:37:48.127

Reputation: 8 350

4

For Windows users you can do the same with a sysinternals program called Junction.

Lifehacker has a nice article about this.

Cory

Posted 2009-07-24T21:37:48.127

Reputation: 483

-1

Or you can wait for Dropbox team to add support for it - see list of upcoming features here.

Domchi

Posted 2009-07-24T21:37:48.127

Reputation: 2 557