Subject: | RAMDirectory does not accept file path as argument in constructor |
Hi,
RAMDirectory.xs does not implement the file/path argument to allow
reading a FSDirectory into memory.
Please see attached patch which seems to work.
Cheers,
Subject: | ramdir_patch.diff |
2c2
< new(CLASS)
---
> new(CLASS, path)
3a4
> const char* path;
5c6,11
< RETVAL = new RAMDirectory();
---
> if (path && strlen(path)) {
> RETVAL = new RAMDirectory(path);
> }
> else {
> RETVAL = new RAMDirectory();
> }
24d29
<