Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PDirectory::GetVolume (  ) const

Get the volume name that the directory is in.

This is platform dependent, for example for MS-DOS it is the 11 character volume name for the drive, eg "DOS_DISK", and for Macintosh it is the disks volume name eg "Untitled". For a unix platform it is the device name for the file system eg "/dev/sda1".

Returns:
string for the directory volume.

Definition at line 124 of file doswin.cxx.

References PString::Left().

{
  struct find_t finf;
  if (_dos_findfirst(Left(3) + "*.*", _A_VOLID, &finf) != 0)
    return PCaselessString();
  return finf.name;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index