Remove references to FileDirectory.