Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#H# This script reads and encrypts arbitrary text to individual files.
#H# It is set up to use a passphrase from a file or stdin as a prompt.
#H#
#H# Files are stored in $cryptodir by default. Due to limitations with gpg,
#H# this directory must NOT have any spaces in it if you are using a passphrase file.
#H#
#H# When supplying a keyword, the encrypted file will be created automatically
#H# if it does not already exist.
# import dropbox
import dropbox
# from dropbox import DropboxOAuth2FlowNoRedirect
import os
import sys
import json
class Dropbox:
def __init__(self):
art@tv:~/Dropbox/Weber/CS4640/assignments$ git add .
error: insufficient permission for adding an object to repository database .git/objects
error: A2/Space Shooter/Assets/Materials/part_spark_white_mat.mat.meta: failed to insert into database
error: unable to index file A2/Space Shooter/Assets/Materials/part_spark_white_mat.mat.meta
fatal: adding files failed
art@tv:~/Dropbox/Weber/CS4640/assignments$ ls -l A2/Space\ Shooter/Assets/Materials/part_spark_white_mat.mat.meta
-rwxr-xr-x 1 art art 138 Oct 12 08:26 A2/Space Shooter/Assets/Materials/part_spark_white_mat.mat.meta
# SDK docs are at
# https://www.dropbox.com/static/developers/dropbox-python-sdk-1.5.1-docs/index.html
from __future__ import print_function
from dropbox import client, session
from oauth.oauth import OAuthToken
import os
class dropbox_client(object):