added support for subdirectories and private files on ~/.privatefiles folder