Lucene.Net 1.9.1 Class Library

FSDirectory Methods

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

Public Static Methods

FileModifiedOverloaded. Returns the time the named file was last modified.
GetDirectoryOverloaded.  
GetDisableLocks Returns whether Lucene's use of lock files is disabled.
SetDisableLocks Set whether Lucene's use of lock files is disabled. By default, lock files are enabled. They should only be disabled if the index is on a read-only medium like a CD-ROM.

Public Instance Methods

CloseCloses the store to future operations.
createFile (inherited from Directory) 
CreateOutputCreates a new, empty file in the directory with the given name. Returns a stream writing this file.
DeleteFileRemoves an existing file in the directory.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FileExistsReturns true iff a file with the given name exists.
FileLengthReturns the length in bytes of a file in the directory.
FileModifiedOverloaded. Returns the time the named file was last modified.
GetFile 
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.
ListReturns an array of strings, one for each file in the directory.
MakeLockConstructs a {@link Lock} with the specified name. Locks are implemented with {@link File#createNewFile()}.
OpenFile (inherited from Directory) 
OpenInputReturns a stream reading an existing file.
RenameFileRenames an existing file in the directory.
ToStringFor debug output.
TouchFileSet 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

FSDirectory Class | Lucene.Net.Store Namespace |