DotLucene 1.4 API Documentation |

# Directory Methods

The methods of the Directory class are listed below. For a complete list of Directory class members, see the Directory Members topic.

#### Public Instance Methods

Close | Closes the store.
CreateFile | Creates a new, empty file in the directory with the given name. Returns a stream writing this file.
DeleteFile | Removes an existing file in the directory.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
FileExists | Returns true iff a file with the given name exists.
FileLength | Returns the length of a file in the directory.
FileModified | Returns the time the named file was last modified.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
List | Returns an array of strings, one for each file in the directory.
MakeLock | Construct a {@link Lock}.
OpenFile | Returns a stream reading an existing file.
RenameFile | Renames an existing file in the directory. If a file already exists with the new name, then it is replaced. This replacement should be atomic.
ToString (inherited from Object) | Returns a String that represents the current Object.
TouchFile | Set the modified time of an existing file to now.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

Directory Class | Lucene.Net.Store Namespace