<?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: Get revision of file from C# in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-revision-of-file-from-C/m-p/359789#M20498</link>
    <description>&lt;P&gt;Checking if the `rev` value has changed is certainly a valid way of determing if your copy of the may be out of date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can make use of the following methods to efficiently keep track of any changes in a particular folder:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm" target="_self"&gt;ListFolderAsync&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderContinueAsync_1.htm" target="_self"&gt;ListFolderContinueAsync&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderLongpollAsync_1.htm" target="_self"&gt;ListFolderLongpollAsync&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm" target="_self"&gt;ListFolderAsync&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderContinueAsync_1.htm" target="_self"&gt;ListFolderContinueAsync&lt;/A&gt; can be used to list the contents of a folder, and then&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderLongpollAsync_1.htm" target="_self"&gt;ListFolderLongpollAsync&lt;/A&gt; can be used to efficiently poll for changes to that folder. Check out the linked documentation for each on information on how to use them.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 18:20:34 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-08-12T18:20:34Z</dc:date>
    <item>
      <title>Get revision of file from C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-revision-of-file-from-C/m-p/359562#M20496</link>
      <description>&lt;P&gt;Hello, I need to keep syncronized in the memory of my program the contents of a file inside my dropbox, I was thinking on getting constantly the Revision of that file and if it's different, then, download the content. Ignoring if that's the best way to go. It's a really light file, less than 10KB of text.&lt;/P&gt;
&lt;P&gt;So, I was thinking this way, in a timer:&lt;/P&gt;
&lt;PRE&gt;            if (!workingAsync)
            {
                workingAsync = true;
                string newRev = (await dBox.Files.GetMetadataAsync("/File.txt")).AsFile.Rev;
                workingAsync = false;

                if (oldRev != newRev)
                {
                    oldRev = newRev;
                    DownloadUpdatedFile();
                }
            }&lt;/PRE&gt;
&lt;P&gt;But I don't know if there's a better way of performing this check.&lt;/P&gt;
&lt;P&gt;Thanks for any advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:51:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-revision-of-file-from-C/m-p/359562#M20496</guid>
      <dc:creator>devLander</dc:creator>
      <dc:date>2019-09-10T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get revision of file from C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-revision-of-file-from-C/m-p/359789#M20498</link>
      <description>&lt;P&gt;Checking if the `rev` value has changed is certainly a valid way of determing if your copy of the may be out of date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can make use of the following methods to efficiently keep track of any changes in a particular folder:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm" target="_self"&gt;ListFolderAsync&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderContinueAsync_1.htm" target="_self"&gt;ListFolderContinueAsync&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderLongpollAsync_1.htm" target="_self"&gt;ListFolderLongpollAsync&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm" target="_self"&gt;ListFolderAsync&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderContinueAsync_1.htm" target="_self"&gt;ListFolderContinueAsync&lt;/A&gt; can be used to list the contents of a folder, and then&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderLongpollAsync_1.htm" target="_self"&gt;ListFolderLongpollAsync&lt;/A&gt; can be used to efficiently poll for changes to that folder. Check out the linked documentation for each on information on how to use them.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 18:20:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-revision-of-file-from-C/m-p/359789#M20498</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-12T18:20:34Z</dc:date>
    </item>
  </channel>
</rss>

