Renames an existing file in the directory. If a file already exists with the new name, then it is replaced. This replacement is not guaranteed to be atomic.
Directory Class | Lucene.Net.Store Namespace