package | KCFinder @version 3.12 @author Pavel Tzonkov sunhater@sunhater.com |
---|
getExtension(string $filename,boolean $toLower = true): string
string
boolean
string
getInexistantFilename(string $filename,string $dir = null,string $tpl = null): string
file::getInexistantFilename("/my/directory/myfile.txt"); If myfile.txt does not exist - returns the same path to the file otherwise returns "/my/directory/myfile(1).txt"
file::getInexistantFilename("myfile.txt", "/my/directory"); returns "myfile.txt" or "myfile(1).txt" or "myfile(2).txt" etc...
file::getInexistantFilename("myfile.txt", "/dir", "{name}[{sufix}]{ext}"); returns "myfile.txt" or "myfile[1].txt" or "myfile[2].txt" etc...
string
string
string
string
getMimeType(string $filename,string $magic = null): string
If Fileinfo PHP extension is not available the MIME type will be fetched by filename extension regarding $MIME property. If the file extension does not exist there, returned type will be application/octet-stream
string
string
string
isWritable(string $filename): boolean
string
boolean
normalizeFilename( $filename): string
string
MIME :