Class with functions to handle files
Meta
- author: Keller Kichel
Remove base folder from the passed folder path
// return "media/noticias/diversas/imagem.jpg"
handleFile.adjustPath('C:/Compartilhada/media/noticias/diversas/imagem.jpg', 'C:/Compartilhada');
Returns String Clean path
Add extension to allowed extension list
ext
String Can be comma separated strings
Remove extension from allowed extension list
ext
String Can be comma separated strings
Adjust path to return a JSON Object
Returns Object JSON Object
Get only the files with allowed extension
files
Array
Returns Array Allowed files
Meta
- deprecated: since version 1.1
Validate extension with allowed extension array
ext
extension
String
Returns Boolean