add function FileLocked