classes/phing/system/io/FileSystem.php
public static function getFileSystem()
    {
        if (self::$fs === null) {
            switch (Phing::getProperty('host.fstype')) {
                case 'UNIX':
                    self::$fs = new UnixFileSystem();
                    break;
                case 'WINDOWS':
                    self::$fs = new WindowsFileSystem();
                    break;
                default:
                    throw new IOException("Host uses unsupported filesystem, unable to proceed");
            }
        }

        return self::$fs;
    }
public static function getFileSystem()
    {
        if (self::$fs === null) {
            switch (Phing::getProperty('host.fstype')) {
                case 'UNIX':
                    self::$fs = new UnixFileSystem();
                    break;
                case 'WINDOWS':
                    self::$fs = new WindowsFileSystem();
                    break;
                default:
                    throw new IOException("Host uses unsupported filesystem, unable to proceed");
            }
        }

        return self::$fs;
    }
public static function getFileSystem ( ) { if ( self :: $ fs === null ) { switch ( Phing :: getProperty ( 'host.fstype' ) ) { case 'UNIX' : self :: $ fs = new UnixFileSystem ( ) ; break ; case 'WINDOWS' : self :: $ fs = new WindowsFileSystem ( ) ; break ; default : throw new IOException ( "Host uses unsupported filesystem, unable to proceed" ) ; } } return self :: $ fs ; }
Static method to return the FileSystem singelton representing
this platform's local filesystem driver.

@return FileSystem
@throws IOException
Static method to return the FileSystem singelton representing this platform s local filesystem driver .