<?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 Using Sync API to open files when already open in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2428#M100</link>
    <description>&lt;P&gt;I'm using the iOS Sync API to load in image files and grab there contents and display them in a scroll view. As the user scrolls it loads and unloads images. But I see that once you open a file you cannot open it again. So I am getting errors when it tries to load again. I don't really need to keep the files open, but I cannot find a way to close them, or grab an already open file. &lt;/P&gt;

&lt;P&gt;What is the best practice for this? Should I just keep a dictionary of files and there paths? I was trying this but running into memory issues.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;(DBFile &lt;EM&gt;)openFile:(DBPath *)path error:(DBError *&lt;/EM&gt;)error; // I'm using this function and calling it in a block via: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block);&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 29 May 2019 09:46:56 GMT</pubDate>
    <dc:creator>Stuart T.</dc:creator>
    <dc:date>2019-05-29T09:46:56Z</dc:date>
    <item>
      <title>Using Sync API to open files when already open</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2428#M100</link>
      <description>&lt;P&gt;I'm using the iOS Sync API to load in image files and grab there contents and display them in a scroll view. As the user scrolls it loads and unloads images. But I see that once you open a file you cannot open it again. So I am getting errors when it tries to load again. I don't really need to keep the files open, but I cannot find a way to close them, or grab an already open file. &lt;/P&gt;

&lt;P&gt;What is the best practice for this? Should I just keep a dictionary of files and there paths? I was trying this but running into memory issues.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;(DBFile &lt;EM&gt;)openFile:(DBPath *)path error:(DBError *&lt;/EM&gt;)error; // I'm using this function and calling it in a block via: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block);&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2428#M100</guid>
      <dc:creator>Stuart T.</dc:creator>
      <dc:date>2019-05-29T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Sync API to open files when already open</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2429#M101</link>
      <description>&lt;P&gt;You probably will want to close any files you don't need to keep open. For reference, you can close a &lt;CODE&gt;DBFile&lt;/CODE&gt; using the &lt;CODE&gt;close&lt;/CODE&gt; method, documented here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/sync/docs/ios#DBFile.close" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/sync/docs/ios#DBFile.close&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2014 06:07:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2429#M101</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2014-12-13T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Sync API to open files when already open</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2430#M102</link>
      <description>&lt;P&gt;Yes! How did I miss that? I was looking everywhere for close. I must've just been looking for it in DBFilesystem. Thanks for pointing out the obvious &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2014 06:14:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Sync-API-to-open-files-when-already-open/m-p/2430#M102</guid>
      <dc:creator>Stuart T.</dc:creator>
      <dc:date>2014-12-13T06:14:25Z</dc:date>
    </item>
  </channel>
</rss>

