Removing dead code
Allowing to temporarily ignore directories
If we try to lock a file that does not exist, remove the dummy file we
create in order to get a lock (this prevents the createDirectory issue)
Temporarily ignore directories on incoming addDirectory