<?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 to rename a file from NM SDK API in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53298#M463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but this solution requires a full copy price to pay.&lt;/P&gt;&lt;P&gt;In practice. this is feasible for small files only.&lt;/P&gt;&lt;P&gt; IMHO it doesn't make sense to miss a renaming feature from any file-oriented interface.&lt;/P&gt;&lt;P&gt;Even more strange, there is a directory renaming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 17:55:43 GMT</pubDate>
    <dc:creator>SPERKMANDL</dc:creator>
    <dc:date>2012-09-24T17:55:43Z</dc:date>
    <item>
      <title>How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53289#M461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, the file group in Manageability SDK does not allow to rename a file, only directories.&lt;/P&gt;&lt;P&gt;Is there anything I missed about this operation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:18:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53289#M461</guid>
      <dc:creator>SPERKMANDL</dc:creator>
      <dc:date>2025-06-05T06:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53294#M462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, apparently there is no API to rename a file.&lt;/P&gt;&lt;P&gt;However, you can indirectly achieve the "rename" functionality for file with existing APIs as discussed below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Assuming we want to rename file &lt;EM&gt;fileA&lt;/EM&gt; to &lt;EM&gt;fileB. &lt;/EM&gt;Both files are under&lt;EM&gt; /vol/myvol/mydir&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; Execute file-get-file-info API for existing file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file-get-file-info&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;&lt;EM&gt;/vol/myvol/mydir/fileA&lt;/EM&gt;&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/file-get-file-info&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the value of "&lt;STRONG&gt;file-size&lt;/STRONG&gt;" from the API response (say, the obtained value is &lt;EM&gt;14&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Read the data from the file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;file-read-file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;length&amp;gt;&lt;EM&gt;14&lt;/EM&gt;&amp;lt;/length&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;offset&amp;gt;0&amp;lt;/offset&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;&lt;EM&gt;/vol/myvol/mydir/fileA&lt;/EM&gt;&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/file-read-file&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And get the value of "&lt;STRONG&gt;data&lt;/STRONG&gt;" from the API response (say, the obtained value is &lt;EM&gt;53756e204175672031322030303a&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Write the data into the new non-existing file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;file-write-file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;data&amp;gt;&lt;EM&gt;53756e204175672031322030303a&lt;/EM&gt;&amp;lt;/data&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;offset&amp;gt;0&amp;lt;/offset&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;&lt;EM&gt;/vol/myvol/mydir/fileB&lt;/EM&gt;&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/file-write-file&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt; Finally delete the original file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;file-delete-file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;&lt;EM&gt;/vol/myvol/mydir/fileA&lt;/EM&gt;&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/file-delete-file&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 17:21:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53294#M462</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2012-09-24T17:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53298#M463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but this solution requires a full copy price to pay.&lt;/P&gt;&lt;P&gt;In practice. this is feasible for small files only.&lt;/P&gt;&lt;P&gt; IMHO it doesn't make sense to miss a renaming feature from any file-oriented interface.&lt;/P&gt;&lt;P&gt;Even more strange, there is a directory renaming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 17:55:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53298#M463</guid>
      <dc:creator>SPERKMANDL</dc:creator>
      <dc:date>2012-09-24T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53303#M464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, this solution can be applied only for the files with size less than 1 MB.&lt;/P&gt;&lt;P&gt;We can file a bug report on Data ONTAP to get this addressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:00:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53303#M464</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2012-09-24T18:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53308#M465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file-* APIs were created to manipulate ONTAP system files, which are less that 1M.&amp;nbsp; At the time, there was no need to rename files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file-* APIs are NOT a replacement for a general file system calls.&amp;nbsp; Please use NFS or CIFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 07:01:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53308#M465</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-09-25T07:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53313#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick, this is a surprise. File-* API contains all is needed to manipulate a filesystem, except for file renaming and file locking.&lt;/P&gt;&lt;P&gt;Furthermore I have some doubts concerning performance, being forced to hex encoding (potentially) large binary contents.&lt;/P&gt;&lt;P&gt;I need NetApp to implement a DMS storage subsystem, and I wanted to stay away from OS dependencies (CIFS for Windows clients, NFS for Unix clients).&lt;/P&gt;&lt;P&gt;However it seems I have to redesign the entire stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 07:45:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53313#M466</guid>
      <dc:creator>SPERKMANDL</dc:creator>
      <dc:date>2012-09-25T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53318#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renzo -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can understand your disappointment; however, I think it is better to work on top of well-know, and well tested file systems.&amp;nbsp; As for OS dependencies, NFS works on Windows and UNIX/Linux; and CIFS works on UNIX/Linux via SAMBA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:43:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53318#M468</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-09-25T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53323#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick, indeed I'm considering to use JCIFS as common element, being constrained to the Java world.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:59:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53323#M470</guid>
      <dc:creator>SPERKMANDL</dc:creator>
      <dc:date>2012-09-25T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename a file from NM SDK API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53327#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file-rename-file API is available in the Vserver context of Cluster Mode ONTAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 11:42:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-rename-a-file-from-NM-SDK-API/m-p/53327#M472</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2012-09-27T11:42:38Z</dc:date>
    </item>
  </channel>
</rss>

