Proposal for "System_WinDrives"

» Metadata » Status
» Description
On unix there is one root "/" under which all files reside. The situation on windows is more complicated; there are several "drives" (Harddisks, floppies, cd, dvd and mounted network drives with names like "a:\" or "c:\") under which the files may be located.

PHP lacks a function similar to the Java "getRoots()" function, and this package provides the necessary functions to implement such a one. It may be helpful for Gtk applications for file selection dialogs as well.

The package is *not* meant to provide a list with al CD/DVD drives or usb sticks - just possbile "roots" on Windows operating systems.

The class utilized the php_w32api.dll (php4) or php_ffi.dll (php5). If the dll is not available, there is a "guess" mode which tries to brute-force discover the drives by checking if the directory exists.

It also is not meant to be a drive lister in unix speak (CD-ROMs, DVD drives and USB-Sticks) - for all operating systems, such a class should be called "System_Media" or "File_Media" which would use System_WinDrives if it is used on Windows, and e.g. File_fstab on *nix.
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2005-05-12
  • Proposal: 2005-05-12
  • Call for Votes: 2005-05-21