示例#1
0
        public static FSDirectory GetDirectory(System.IO.DirectoryInfo file, bool create)
        {
            FSDirectory dir = GetDirectory(file, null);

            // This is now deprecated (creation should only be done
            // by IndexWriter):
            if (create)
            {
                dir.Create();
            }

            return(dir);
        }