jamietr1/google-docs-writing-tracker — pull request #12 by digitalnotions (2014-08-03 23:49:00+00:00)
Title: Fix duplicate files

At present, Google Docs seems to create the backup files and then tag them with the appropriate snapshot directory. However, the root directory is never removed from the file, so all the snapshot files appear in both the root directory and the configured snapshot directory.

This update modifies the backup file creation to return the file handle of the backup file, and then remove the root folder tag, thereby leaving it only in the snapshot folder.