How do I programmatically locate my Dropbox folder using C#?

UPDATED SOLUTION Dropbox now provides an info.json file as stated here: https://www.dropbox.com/en/help/4584 If you don’t want to deal with parsing the JSON, you can simply use the following solution: var infoPath = @”Dropbox\info.json”; var jsonPath = Path.Combine(Environment.GetEnvironmentVariable(“LocalAppData”), infoPath); if (!File.Exists(jsonPath)) jsonPath = Path.Combine(Environment.GetEnvironmentVariable(“AppData”), infoPath); if (!File.Exists(jsonPath)) throw new Exception(“Dropbox could not be found!”); var dropboxPath … Read more

Mercurial (and, I guess Git) with Dropbox: any drawbacks?

I’d advise against it for the reasons stated above, but more strenuously stated. Both mercurial and git have their own protocols for moving changesets between repositories. These protocols are optimized/built for: efficiency consistency (never can you pull from a repo in a half-updated state) hooks/triggers — doing things on push/pull including quality (no tabs allowed, … Read more

Codesign of Dropbox API fails in Xcode 4.6.3: “code object is not signed at all”

I think I may have figured this one out. I’ve been running Xcode 4.6.3 on OS X Mavericks, under the impression that any build-specific tools were bundled in the Xcode application. But, it seems codesign is in /usr/bin. Whether it’s put there by one of the Xcode installers or comes with a vanilla system install, … Read more

How do I use Spring Boot to serve static content located in Dropbox folder?

You can add your own static resource handler (it overwrites the default), e.g. @Configuration public class StaticResourceConfiguration extends WebMvcConfigurerAdapter { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler(“/**”).addResourceLocations(“file:/path/to/my/dropbox/”); } } There is some documentation about this in Spring Boot, but it’s really just a vanilla Spring MVC feature. Also since spring boot 1.2 (I think) you … Read more

Git with Dropbox Issues

As it was already pointed out, Dropbox isn’t the safest solution to share your repo (see “Is this plain stupid: GIT Sharing Via DropBox?“. Greg Bacon remarked that Dropbox already retains old versions of files, which is a bit redundant with what Git already does. See “this discussion” (which was about a full repo backup, … Read more