Core/Folder.php
public static function get($path = false) {

        if ($path && self::isFolder($path)) {

            $list = array();

            $tmpList = scandir($path);

            foreach ($tmpList as $k => $item) {

                if ($item != '.' && $item != '..' && $item != '.DS_Store') {
                    $list[] = $item;
                }
            }

            return $list;
        }

        return false;
    }
public static function get($path = false) {

        if ($path && self::isFolder($path)) {

            $list = array();

            $tmpList = scandir($path);

            foreach ($tmpList as $k => $item) {

                if ($item != '.' && $item != '..' && $item != '.DS_Store') {
                    $list[] = $item;
                }
            }

            return $list;
        }

        return false;
    }
public static function get ( $ path = false ) { if ( $ path && self :: isFolder ( $ path ) ) { $ list = array ( ) ; $ tmpList = scandir ( $ path ) ; foreach ( $ tmpList as $ k => $ item ) { if ( $ item != '.' && $ item != '..' && $ item != '.DS_Store' ) { $ list [ ] = $ item ; } } return $ list ; } return false ; }
Get list of all files in a given directory.
@param string path to folder
@return array of files in the directory
Get list of all files in a given directory .