classnetColarUtils::FileUtils

sys::Obj
  netColarUtils::FileUtils

FileUtils

_isTextFile

const static Bool _isTextFile(File? f, Int maxSize := 99000)

Try to determin is a file is text If fie size is > maxSize then wil be considered bn automatically

isTextFile

const static Bool isTextFile(File? f, Int maxSize := 99000)

isTextLine

const static Bool isTextLine(Str? line)

knownBinExts

const static Str[] knownBinExts := ...

knownTextExts

const static Str[] knownTextExts := ...

mkDirs

const static Void mkDirs(Uri dir)

Create a directory along with whatever parent directories are needed

textChars

const static Str textChars := "\t {}[]~`!@#\$%^&*()-_=+:;\"'<>?,./"

Other common text chars that are not alpha numeric