Closed zeffii closed 10 years ago
Nice, nice idea.
i've uploaded multifile gists with python before, let me find the code (anonymous uploads only.. but they're easy enough to fork)
backup_dir = "C:/Users/whatever/Dropbox/Public/chuck_folder/"
if os.path.exists(backup_dir):
print("directory exists!")
try:
shutil.copy(zipname, backup_dir)
except:
print("something went wrong")
seems to work nicely, will merge tomorrow and add a sublime preference for backup dir.
couldn't sleep. can't sleep.
done, added backup_dir as option to ChucK.sublime-settings
i'll leave the gist uploading as a different issue, it doesn't need to happen at all..but I might have a look around for old code to this effect and polish it a bit.
closed.
Option to write the file locally to the directory or to also write the file to the users local folder used for their backup service (dropbox, whatever google drive).
If I could figure out OAUTH i'd be able to save zips to github repositories, or multifile gists.