<?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: Renaming a file/folder using swifty dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200135#M9357</link>
    <description>&lt;P&gt;Hi Mark, you can use the &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes4moveFT8fromPathSS6toPathSS17allowSharedFolderSb10autorenameSb_GCS_10RpcRequestCCS_5Files18MetadataSerializerCS2_25RelocationErrorSerializer_" target="_self"&gt;move&lt;/A&gt; method to rename files or folders.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jan 2017 21:56:59 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-01-01T21:56:59Z</dc:date>
    <item>
      <title>Renaming a file/folder using swifty dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200130#M9356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, a stupid question. I want to rename a file within my dropbox using the swifty dropbox API. But I don't find a rename method and I wanted to check with you the procedure I should be using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200130#M9356</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2019-05-29T09:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a file/folder using swifty dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200135#M9357</link>
      <description>&lt;P&gt;Hi Mark, you can use the &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes4moveFT8fromPathSS6toPathSS17allowSharedFolderSb10autorenameSb_GCS_10RpcRequestCCS_5Files18MetadataSerializerCS2_25RelocationErrorSerializer_" target="_self"&gt;move&lt;/A&gt; method to rename files or folders.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 21:56:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200135#M9357</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-01T21:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a file/folder using swifty dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200220#M9365</link>
      <description>&lt;P&gt;Thanks Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the bear bones code for your readers I put togther; it swaps two files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let randx = Int(arc4random_uniform(32768))&lt;BR /&gt; let sourcePathC = sourcePathB + String(randx)&lt;BR /&gt; let client = DropboxClientsManager.authorizedClient!&lt;BR /&gt; _ = client.files.move(fromPath: sourcePathA, toPath: sourcePathC, allowSharedFolder: false, autorename: true)&lt;BR /&gt;&amp;nbsp; .response { response, error in&lt;BR /&gt;&amp;nbsp; self.theApp.isNetworkActivityIndicatorVisible = true&lt;BR /&gt;&amp;nbsp; if let response = response {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; _ = client.files.move(fromPath: sourcePathB, toPath: sourcePathA, allowSharedFolder: false, autorename: true)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .response { response, error in&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if let response = response {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; _ = client.files.move(fromPath: sourcePathC, toPath: sourcePathB, allowSharedFolder: false, autorename: true)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .response { response, error in&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if let response = response {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.theApp.isNetworkActivityIndicatorVisible = false&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 15:52:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Renaming-a-file-folder-using-swifty-dropbox/m-p/200220#M9365</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2017-01-02T15:52:39Z</dc:date>
    </item>
  </channel>
</rss>

