in function, lock file path
Add filetype_mode
Add filetype mode