dropbox

Is there a way to tell Dropbox not to upload a certain file? (Eclipse related)

*爱你&永不变心* 提交于 2019-12-20 10:24:50
问题 I am trying to sync a code project between two computers, one running Windows and the other running Ubuntu 12.04. I use Eclipse on both machines, but the .metadata folder produced by Eclipse is causing Eclipse to crash because of OS incompatibilities. I was wondering if there is a way to tell Dropbox to "ignore this folder" or something like that. Or maybe have it ignore all hidden files. 回答1: Using the Official Dropbox Command Line Interface (CLI) PROMPT$ dropbox help exclude dropbox exclude

Use curl to download a Dropbox folder via shared link (not public link)

試著忘記壹切 提交于 2019-12-20 09:26:39
问题 Dropbox makes it easy to programmatically download a single file via curl (EX: curl -O https://dl.dropboxusercontent.com/s/file.ext ). It is a little bit trickier for a folder (regular directory folder, not zipped). The shared link for a folder, as opposed to a file, does not link directly to the zipped folder (Dropbox automatically zips the folder before it is downloaded). It would appear that you could just add ?dl=1 to the end of the link, as this will directly start the download in a

Using Subversion with DropBox

岁酱吖の 提交于 2019-12-20 08:23:58
问题 Is it a bad idea to use DropBox as a backup system for Subversion repositories? Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences? My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together? p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep

python dropbox api error

旧街凉风 提交于 2019-12-20 06:32:10
问题 I'm following the tutorial here So far so good but the upload example give me errors. The code: from dropbox import client, rest, session f = open('txt2.txt') # upload a file response = client.put_file('/magnum-opus.txt', f) print "uploaded:", response The error: Traceback (most recent call last): File "dropbox_ul.py", line 4, in <module> response = client.put_file('/magnum-opus.txt', f) AttributeError: 'module' object has no attribute 'put_file' Where did I go wrong? EDIT: The new code I'm

python dropbox api error

﹥>﹥吖頭↗ 提交于 2019-12-20 06:30:54
问题 I'm following the tutorial here So far so good but the upload example give me errors. The code: from dropbox import client, rest, session f = open('txt2.txt') # upload a file response = client.put_file('/magnum-opus.txt', f) print "uploaded:", response The error: Traceback (most recent call last): File "dropbox_ul.py", line 4, in <module> response = client.put_file('/magnum-opus.txt', f) AttributeError: 'module' object has no attribute 'put_file' Where did I go wrong? EDIT: The new code I'm

Getting file url from a dropbox file with dropbox api

天大地大妈咪最大 提交于 2019-12-20 04:55:11
问题 I need to get a file listing from a non public folder on dropbox. After this, I need to get an URL for each file to let me access it through http. Is this possible with dropbox api? Thanks in advance. 回答1: Check out DropboxAPI.Entry metadata() and DropboxAPI.DropboxLink share() here 来源: https://stackoverflow.com/questions/14942371/getting-file-url-from-a-dropbox-file-with-dropbox-api

Cross-origin image load from cross-enabled site is denied

牧云@^-^@ 提交于 2019-12-20 04:50:23
问题 I'm trying to use CORS enabled image which is located on cors-enabled site: dropbox.com. I've got an error: cross-origin image load denied by CORS policy. How to fix it? <html> <body> <img id="output" src="#"/> <script> var img = new Image(); img.crossOrigin = "anonymous"; var canvas = document.createElement("canvas"); img.onload = function () { canvas.width = img.width; canvas.height = img.width; var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0); } img.src = "https://www.dropbox

How to download a Dropbox share linkage (aimed at a zip file) to local

一曲冷凌霜 提交于 2019-12-20 03:12:42
问题 I have following question and want help regarding that.I'm using Dropbox iOS SDK. Is it possible to download a Dropbox share linkage (aimed at a zip file) like https://www.dropbox.com/s/m2o28nls8m8uyx9/FacebookAPI.zip. I think I could use HTTP post method. However, the receive MIME Type is text/html rather than zip type. Thanks 回答1: i think you can try this: change your sharable link to: https://dl.dropbox.com/s/m2o28nls8m8uyx9/FacebookAPI.zip?dl=1 it works on my file. 来源: https:/

dropbox-style svn/git/mercurial?: auto-commit upon change and auto-checkout

你离开我真会死。 提交于 2019-12-19 16:18:43
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . I'm not a professional programmer, but I do some small solo projects and I would like some versioning and syncing, but going through the process of remember to commit and checkout (on different computers) is more of a hassle than, say, keeping code in a dropbox folder that automatically uploads to the cloud upon file change. Using the current copy is

File uploading Dropbox v2.0 API

跟風遠走 提交于 2019-12-19 04:05:04
问题 I'm using the new Dropbox SDK v2 for .NET. I'm trying to upload a document to a Dropbox account. public async Task UploadDoc() { using (var dbx = new DropboxClient("XXXXXXXXXX")) { var full = await dbx.Users.GetCurrentAccountAsync(); await Upload(dbx, @"/MyApp/test", "test.txt","Testing!"); } } async Task Upload(DropboxClient dbx, string folder, string file, string content) { using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content))) { var updated = await dbx.Files.UploadAsync(