private function parseFileName($path, $file) {
		$result = Array();
		if (is_dir($path.'/'.$file)) {
			$result['name'] = $file;
			$result['ext'] = 'dir';
			$result['is_dir'] = 1;
		} else {
			$pos = strrpos($file, '.');
			$result['name'] = substr($file, 0, $pos);
			$result['ext'] = substr($file, $pos + 1);
			$result['is_dir'] = 0;
		}
		return $result;
	}
private function parseFileName($path, $file) {
		$result = Array();
		if (is_dir($path.'/'.$file)) {
			$result['name'] = $file;
			$result['ext'] = 'dir';
			$result['is_dir'] = 1;
		} else {
			$pos = strrpos($file, '.');
			$result['name'] = substr($file, 0, $pos);
			$result['ext'] = substr($file, $pos + 1);
			$result['is_dir'] = 0;
		}
		return $result;
	}
private function parseFileName ( $ path , $ file ) { $ result = Array ( ) ; if ( is_dir ( $ path . '/' . $ file ) ) { $ result [ 'name' ] = $ file ; $ result [ 'ext' ] = 'dir' ; $ result [ 'is_dir' ] = 1 ; } else { $ pos = strrpos ( $ file , '.' ) ; $ result [ 'name' ] = substr ( $ file , 0 , $ pos ) ; $ result [ 'ext' ] = substr ( $ file , $ pos + 1 ) ; $ result [ 'is_dir' ] = 0 ; } return $ result ; }
parses file name and checks if is directory
parses file name and checks if is directory