{"action":"created","issue":{"url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/34","repository_url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore","labels_url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/34/comments","events_url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/34/events","html_url":"https://github.com/willhlaw/node-firestore-backup-restore/issues/34","id":337067959,"node_id":"MDU6SXNzdWUzMzcwNjc5NTk=","number":34,"title":".DS_Store prevents successfull restore","user":{"login":"amjadyahya","id":4217559,"node_id":"MDQ6VXNlcjQyMTc1NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4217559?v=4","gravatar_id":"","url":"https://api.github.com/users/amjadyahya","html_url":"https://github.com/amjadyahya","followers_url":"https://api.github.com/users/amjadyahya/followers","following_url":"https://api.github.com/users/amjadyahya/following{/other_user}","gists_url":"https://api.github.com/users/amjadyahya/gists{/gist_id}","starred_url":"https://api.github.com/users/amjadyahya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amjadyahya/subscriptions","organizations_url":"https://api.github.com/users/amjadyahya/orgs","repos_url":"https://api.github.com/users/amjadyahya/repos","events_url":"https://api.github.com/users/amjadyahya/events{/privacy}","received_events_url":"https://api.github.com/users/amjadyahya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-29T16:50:27Z","updated_at":"2018-11-22T13:38:36Z","closed_at":null,"author_association":"NONE","body":"When I try to restore using this command: \r\n`firestore-backup-restore --backupPath /Users/amjad/Desktop/untitledfolder/iOrder  --restoreAccountCredentials /Users/amjad/Desktop/iorder--credentials.json`\r\n\r\nI get the following error:\r\n```\r\nThe behavior for Date objects stored in Firestore is going to change\r\nAND YOUR APP MAY BREAK.\r\nTo hide this warning and ensure your app does not break, you need to add the\r\nfollowing code to your app before calling any other Cloud Firestore methods:\r\n\r\n  const settings = {/* your settings... */ timestampsInSnapshots: true};\r\n  const firestore = new Firestore(settings);\r\n\r\nWith this change, timestamps stored in Cloud Firestore will be read back as\r\nFirebase Timestamp objects instead of as system Date objects. So you will also\r\nneed to update code expecting a Date to instead expect a Timestamp. For example:\r\n\r\n  // Old:\r\n  const date = snapshot.get('created_at');\r\n  // New:\r\n  const timestamp = snapshot.get('created_at');\r\n  const date = timestamp.toDate();\r\n\r\nPlease audit all existing usages of Date when you enable the new behavior. In a\r\nfuture release, the behavior will change to the new behavior, so if you do not\r\nfollow these steps, YOUR APP MAY BREAK.\r\nRestoring to collection /Users/amjad/Desktop/untitledfolder document /Users/amjad/Desktop/untitledfolder/iOrder/.DS_Store\r\nundefined:1\r\n\r\n\r\n\r\nSyntaxError: Unexpected token \r\n```\r\n\r\nI have activated  **_show hidden files_** on my MAC, I couldn't locate the .DS_Store in the restore folder. I'm stuck and cannot restore my backup files"},"comment":{"url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/comments/441033601","html_url":"https://github.com/willhlaw/node-firestore-backup-restore/issues/34#issuecomment-441033601","issue_url":"https://api.github.com/repos/willhlaw/node-firestore-backup-restore/issues/34","id":441033601,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTAzMzYwMQ==","user":{"login":"kitfit-dave","id":41273710,"node_id":"MDQ6VXNlcjQxMjczNzEw","avatar_url":"https://avatars3.githubusercontent.com/u/41273710?v=4","gravatar_id":"","url":"https://api.github.com/users/kitfit-dave","html_url":"https://github.com/kitfit-dave","followers_url":"https://api.github.com/users/kitfit-dave/followers","following_url":"https://api.github.com/users/kitfit-dave/following{/other_user}","gists_url":"https://api.github.com/users/kitfit-dave/gists{/gist_id}","starred_url":"https://api.github.com/users/kitfit-dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitfit-dave/subscriptions","organizations_url":"https://api.github.com/users/kitfit-dave/orgs","repos_url":"https://api.github.com/users/kitfit-dave/repos","events_url":"https://api.github.com/users/kitfit-dave/events{/privacy}","received_events_url":"https://api.github.com/users/kitfit-dave/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T13:38:36Z","updated_at":"2018-11-22T13:38:36Z","author_association":"NONE","body":"There is likely one in there somewhere... Try this to remove them (then try the restore again): `find /Users/amjad/Desktop/untitledfolder/iOrder -name '.DS_Store' -type f -delete`"}}
{"actor":{"display_login":"kitfit-dave"}}