Tokenization of files in directories semi working