<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can i use Sync API to check if a file is deleted by other computer? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20161#M655</link>
    <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/core/docs#delta" rel="nofollow noreferrer"&gt;/delta&lt;/A&gt; returns null for deleted items, just to tell your app that there is now nothing at that path, and not metadata, so that wouldn't work directly. You could then use &lt;A href="https://www.dropbox.com/developers/core/docs#metadata" rel="nofollow noreferrer"&gt;/metadata&lt;/A&gt; or &lt;A href="https://www.dropbox.com/developers/core/docs#revisions" rel="nofollow noreferrer"&gt;/revisions&lt;/A&gt; to see what you need though.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2015 00:20:35 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-01-08T00:20:35Z</dc:date>
    <item>
      <title>How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20156#M650</link>
      <description>&lt;P&gt;We are evaluating Sync API for our file sync function in a new app.&lt;BR /&gt;
Our app stores user data in local file system and allow them to sync the local file system with a folder in users' dropbox account.&lt;BR /&gt;
Here comes a question: &lt;BR /&gt;
When we compare all local files with their remote correspondences. If there is a file exists in local, but not in dropbox,&lt;BR /&gt;
How can we know if it's deleted from dropbox by other dropbox clients or it's simple a new file from local?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20156#M650</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2019-05-29T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20157#M651</link>
      <description>&lt;P&gt;Do you mean you're trying to manually keep a local filesystem in sync with the Dropbox account? The Sync SDK wasn't really designed for that use case. Instead, it's intended that you'd use the Sync SDK as the source of truth for the files, where you let it maintain consistency with the server itself, cache files, etc. The Sync SDK just tells you when something changes, and not what exactly, with the intention that you'd just reload any necessary state from the SDK itself when building your UI. &lt;/P&gt;

&lt;P&gt;If you need to know exactly what has changed, in order to manually sync with your own local filesystem, you may want to use a Core SDK with /delta functionality instead:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/developers/core/docs#delta" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#delta&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:55:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20157#M651</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-07T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20158#M652</link>
      <description>&lt;P&gt;Thank you for the answer!&lt;BR /&gt;
We do intend to manually keep a local filesystem in sync with Dropbox account.&lt;BR /&gt;
Is it possible that we can use Sync SDK for listing all file entries recursively and use Core SDK for more detail info at the same time?&lt;BR /&gt;
We heard that these two SDKs seemed can not be used together?&lt;BR /&gt;
The other question: does /delta return deleted file entries since previous cursor?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 08:41:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20158#M652</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2015-01-07T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20159#M653</link>
      <description>&lt;P&gt;You could technically use both the Sync and Core SDKs together in the same app, but we don't recommend doing so. They weren't built with that in mind, so it's relatively difficult to do, and we don't have any specific instructions for making it work.&lt;/P&gt;

&lt;P&gt;Yes, /delta notifies you of deleted files. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 08:50:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20159#M653</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-07T08:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20160#M654</link>
      <description>&lt;P&gt;Is it possible to use Core API's "/delta" command to get the file delete time (like the last modified date) so we can know whether there is a file conflict between our local file and the dropbox file?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 21:45:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20160#M654</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2015-01-07T21:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20161#M655</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/core/docs#delta" rel="nofollow noreferrer"&gt;/delta&lt;/A&gt; returns null for deleted items, just to tell your app that there is now nothing at that path, and not metadata, so that wouldn't work directly. You could then use &lt;A href="https://www.dropbox.com/developers/core/docs#metadata" rel="nofollow noreferrer"&gt;/metadata&lt;/A&gt; or &lt;A href="https://www.dropbox.com/developers/core/docs#revisions" rel="nofollow noreferrer"&gt;/revisions&lt;/A&gt; to see what you need though.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 00:20:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20161#M655</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-08T00:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20162#M656</link>
      <description>&lt;P&gt;You can think of the 'rev' of a file as an address in the history of the account, and not as a unique identifier of the contents of the file.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;If you mean "unique file snapshot ID" in reference to the file content, no, other files, or the same file, with different revs may contain the same data. Or, if you are asking if a particular rev is unique to a file, yes, no other file will ever have that same rev.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Yes, moving a file will change its rev.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 09 Jan 2015 00:38:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20162#M656</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-09T00:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20163#M657</link>
      <description>&lt;P&gt;If a file is deleted, will its rev be recycled to used in the other file change?&lt;BR /&gt;
i.e. a file, xyz, whose rev was "1234", was deleted, and at the same time, the other file, abc, whose rev was "5678", was moved to somewhere, and got a new rev, "1234", which was recycled from the deleted file, xyz. Is it possible?&lt;BR /&gt;
The reason to ask this question is to know whether can we use rev to detect any file rename or move action taken place in dropbox side by ourself.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 00:46:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20163#M657</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2015-01-09T00:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20164#M658</link>
      <description>&lt;P&gt;No, revs are not recycled or re-used. There currently isn't a good method for tracking moved/renamed files via the API.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 00:48:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20164#M658</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-09T00:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20165#M659</link>
      <description>&lt;P&gt;We can generate file fingerprint for every local file (before uploading to dropbox) and store them in our app.&lt;BR /&gt;
Whenever there are delta notifying added files and deleted files, we can download the new file data from dropbox and retrieve the deleted file data from our local file by looking up the fingerprint database in our app.&lt;BR /&gt;
Then, compare their fingerprints to know whether is there any rename or move change in dropbox side.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 01:05:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20165#M659</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2015-01-09T01:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20166#M660</link>
      <description>&lt;P&gt;I've been working with a project called KRCloudSync which includes the ability to sync a folder of files locally with Dropbox. It seems to work fairly well except it doesn't handle the situation of deleting a local file causing that file to be deleted in Dropbox. But I'm working on a workaround for it. You can see it here: &lt;A href="https://github.com/MindPreview/KRCloudSync" rel="nofollow noreferrer"&gt;https://github.com/MindPreview/KRCloudSync&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I did not write it, but it does seem to be pretty good. It's written in Objective-C for Mac and iOS. It would be great if Dropbox allowed this kind of sync by default though. I shouldn't have to use the Dropbox specific API to read and write files. I should be able to read and write files in the normal way using NSFileManager and other NSFoundation classes and have the Dropbox system just monitor a folder and then sync that folder with your Dropbox account.&lt;/P&gt;

&lt;P&gt;I have all kinds of places in my app that I read and write files. It would be a shame to have to add in a bunch of conditionals now to read and write all my files using the Dropbox Sync API when NSFoundation does a perfectly good job.&lt;/P&gt;

&lt;P&gt;Ultimately Dropbox should have a single API call that lets you say "Ok Dropbox, watch this folder for changes and sync it with my Dropbox account, and let me know if anything has changed on either side."&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:30:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20166#M660</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2015-01-16T17:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Sync API to check if a file is deleted by other computer?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20167#M661</link>
      <description>&lt;P&gt;Thank you very much for sharing the codes!!&lt;BR /&gt;
We are looking at it to learn more knowledge and experience from the project.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 18:38:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-i-use-Sync-API-to-check-if-a-file-is-deleted-by-other/m-p/20167#M661</guid>
      <dc:creator>C. Tim</dc:creator>
      <dc:date>2015-01-16T18:38:49Z</dc:date>
    </item>
  </channel>
</rss>

