src/eric7/Documentation/Source/eric7.SystemUtilities.FileSystemUtilities.html

branch
eric7
changeset 11175
ca7057547506
parent 10795
89cfe35c12f9
equal deleted inserted replaced
11174:ab097070aedf 11175:ca7057547506
67 <tr> 67 <tr>
68 <td><a href="#getUserMounts">getUserMounts</a></td> 68 <td><a href="#getUserMounts">getUserMounts</a></td>
69 <td>Function to determine all available user mounts.</td> 69 <td>Function to determine all available user mounts.</td>
70 </tr> 70 </tr>
71 <tr> 71 <tr>
72 <td><a href="#getVolumeName">getVolumeName</a></td>
73 <td>Local function to determine the volume of a disk or device.</td>
74 </tr>
75 <tr>
76 <td><a href="#isDeviceFileName">isDeviceFileName</a></td> 72 <td><a href="#isDeviceFileName">isDeviceFileName</a></td>
77 <td>Function to check, if the given file name is a device file name.</td> 73 <td>Function to check, if the given file name is a device file name.</td>
78 </tr> 74 </tr>
79 <tr> 75 <tr>
80 <td><a href="#isDrive">isDrive</a></td> 76 <td><a href="#isDrive">isDrive</a></td>
352 <div align="right"><a href="#top">Up</a></div> 348 <div align="right"><a href="#top">Up</a></div>
353 <hr /> 349 <hr />
354 <hr /> 350 <hr />
355 <a NAME="findVolume" ID="findVolume"></a> 351 <a NAME="findVolume" ID="findVolume"></a>
356 <h2>findVolume</h2> 352 <h2>findVolume</h2>
357 <b>findVolume</b>(<i>volumeName, findAll=False</i>) 353 <b>findVolume</b>(<i>volumeName, findAll=False, markerFile=None</i>)
358 <p> 354 <p>
359 Function to find the directory belonging to a given volume name. 355 Function to find the directory belonging to a given volume name.
360 </p> 356 </p>
361 357
362 <dl> 358 <dl>
367 </dd> 363 </dd>
368 <dt><i>findAll</i> (bool (optional))</dt> 364 <dt><i>findAll</i> (bool (optional))</dt>
369 <dd> 365 <dd>
370 flag indicating to get the directories for all volumes 366 flag indicating to get the directories for all volumes
371 starting with the given name (defaults to False) 367 starting with the given name (defaults to False)
368 </dd>
369 <dt><i>markerFile</i> (str (optional))</dt>
370 <dd>
371 name of a file to check for its existence (defaults to None)
372 </dd> 372 </dd>
373 </dl> 373 </dl>
374 <dl> 374 <dl>
375 <dt>Return:</dt> 375 <dt>Return:</dt>
376 <dd> 376 <dd>
534 </dd> 534 </dd>
535 </dl> 535 </dl>
536 <div align="right"><a href="#top">Up</a></div> 536 <div align="right"><a href="#top">Up</a></div>
537 <hr /> 537 <hr />
538 <hr /> 538 <hr />
539 <a NAME="getVolumeName" ID="getVolumeName"></a>
540 <h2>getVolumeName</h2>
541 <b>getVolumeName</b>(<i>diskName</i>)
542 <p>
543 Local function to determine the volume of a disk or device.
544 </p>
545 <p>
546 Each disk or external device connected to windows has an
547 attribute called "volume name". This function returns the
548 volume name for the given disk/device.
549 </p>
550 <p>
551 Code from http://stackoverflow.com/a/12056414
552 </p>
553
554 <div align="right"><a href="#top">Up</a></div>
555 <hr />
556 <hr />
557 <a NAME="isDeviceFileName" ID="isDeviceFileName"></a> 539 <a NAME="isDeviceFileName" ID="isDeviceFileName"></a>
558 <h2>isDeviceFileName</h2> 540 <h2>isDeviceFileName</h2>
559 <b>isDeviceFileName</b>(<i>fileName</i>) 541 <b>isDeviceFileName</b>(<i>fileName</i>)
560 <p> 542 <p>
561 Function to check, if the given file name is a device file name. 543 Function to check, if the given file name is a device file name.

eric ide

mercurial