eric6/Documentation/Source/eric6.Utilities.__init__.html

changeset 7145
ceb3e8b242c1
parent 6942
2602857055c5
child 7204
cbf6d88004ce
--- a/eric6/Documentation/Source/eric6.Utilities.__init__.html	Tue Aug 20 17:07:06 2019 +0200
+++ b/eric6/Documentation/Source/eric6.Utilities.__init__.html	Tue Aug 20 17:11:17 2019 +0200
@@ -94,6 +94,9 @@
 <td><a href="#filterAnsiSequences">filterAnsiSequences</a></td>
 <td>Function to filter out ANSI escape sequences (color only).</td>
 </tr><tr>
+<td><a href="#findVolume">findVolume</a></td>
+<td>Function to find the directory belonging to a given volume name.</td>
+</tr><tr>
 <td><a href="#fromNativeSeparators">fromNativeSeparators</a></td>
 <td>Function returning a path, that is using "/" separator characters.</td>
 </tr><tr>
@@ -157,6 +160,9 @@
 <td><a href="#getUserName">getUserName</a></td>
 <td>Function to get the user name.</td>
 </tr><tr>
+<td><a href="#getVolumeName">getVolumeName</a></td>
+<td>Local function to determine the volume of a disk or device.</td>
+</tr><tr>
 <td><a href="#getWindowsExecutablePath">getWindowsExecutablePath</a></td>
 <td>Function to build the full path of an executable file from the environment on Windows platforms.</td>
 </tr><tr>
@@ -790,6 +796,29 @@
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr /><hr />
+<a NAME="findVolume" ID="findVolume"></a>
+<h2>findVolume</h2>
+<b>findVolume</b>(<i>volumeName</i>)
+<p>
+    Function to find the directory belonging to a given volume name.
+</p><dl>
+<dt><i>volumeName</i> (str)</dt>
+<dd>
+name of the volume to search for
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+directory path of the given volume name
+</dd>
+</dl><dl>
+<dt>Return Type:</dt>
+<dd>
+str
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
 <a NAME="fromNativeSeparators" ID="fromNativeSeparators"></a>
 <h2>fromNativeSeparators</h2>
 <b>fromNativeSeparators</b>(<i>path</i>)
@@ -1177,6 +1206,20 @@
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr /><hr />
+<a NAME="getVolumeName" ID="getVolumeName"></a>
+<h2>getVolumeName</h2>
+<b>getVolumeName</b>(<i>diskName</i>)
+<p>
+            Local function to determine the volume of a disk or device.
+</p><p>
+            Each disk or external device connected to windows has an
+            attribute called "volume name". This function returns the
+            volume name for the given disk/device.
+</p><p>
+            Code from http://stackoverflow.com/a/12056414
+</p>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
 <a NAME="getWindowsExecutablePath" ID="getWindowsExecutablePath"></a>
 <h2>getWindowsExecutablePath</h2>
 <b>getWindowsExecutablePath</b>(<i>file</i>)

eric ide

mercurial