public static function getDestinationFolder($path){
		$path = (string) $path;
		if( preg_match('/\.(jpe?g|gif|png|svg)$/i', $path) ) {
			return 'Image';
		}elseif( preg_match('/\.(otf|woff|ttf)$/i', $path) ) {
			return 'Font';
		}elseif( preg_match('/\.(css)$/i', $path) ) {
			return 'CSS';
		}elseif( preg_match('/\.(mp4|mp3)$/i', $path) ){
			return 'Media';
		}elseif( preg_match('/\.(smil|pls)$/i', $path) ){
			return 'Speech';
		}elseif( preg_match('/\.(js|json)$/i', $path) ){
			return 'JS';
		}elseif( preg_match('/\.x?html$/i', $path) ){
			return 'Text';
		}else{
			return 'Misc';
		}
	}
public static function getDestinationFolder($path){
		$path = (string) $path;
		if( preg_match('/\.(jpe?g|gif|png|svg)$/i', $path) ) {
			return 'Image';
		}elseif( preg_match('/\.(otf|woff|ttf)$/i', $path) ) {
			return 'Font';
		}elseif( preg_match('/\.(css)$/i', $path) ) {
			return 'CSS';
		}elseif( preg_match('/\.(mp4|mp3)$/i', $path) ){
			return 'Media';
		}elseif( preg_match('/\.(smil|pls)$/i', $path) ){
			return 'Speech';
		}elseif( preg_match('/\.(js|json)$/i', $path) ){
			return 'JS';
		}elseif( preg_match('/\.x?html$/i', $path) ){
			return 'Text';
		}else{
			return 'Misc';
		}
	}
public static function getDestinationFolder ( $ path ) { $ path = ( string ) $ path ; if ( preg_match ( '/\.(jpe?g|gif|png|svg)$/i' , $ path ) ) { return 'Image' ; } elseif ( preg_match ( '/\.(otf|woff|ttf)$/i' , $ path ) ) { return 'Font' ; } elseif ( preg_match ( '/\.(css)$/i' , $ path ) ) { return 'CSS' ; } elseif ( preg_match ( '/\.(mp4|mp3)$/i' , $ path ) ) { return 'Media' ; } elseif ( preg_match ( '/\.(smil|pls)$/i' , $ path ) ) { return 'Speech' ; } elseif ( preg_match ( '/\.(js|json)$/i' , $ path ) ) { return 'JS' ; } elseif ( preg_match ( '/\.x?html$/i' , $ path ) ) { return 'Text' ; } else { return 'Misc' ; } }
Return folder name

@param string $path

@return string
Return folder name