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.
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2004-11-20
  • Proposal: 2004-11-20
  • Call for Votes: 2004-11-28
  • Voting Extended: 2004-12-06
  • Christian Weiske
    [2004-11-23 14:18 UTC]

    Changed package name from "File_WinDrives" to "System_WinDrives".
  • Christian Weiske
    [2004-11-23 16:57 UTC]

    Added php5 support (Except names as I can't get this working).