support directories in flash files