Method: WordTree::Disk::LibraryLocator#relpath

Defined in:
lib/wordtree/disk/library_locator.rb

#relpathObject

Returns a “relative” path to be joined to the library root, e.g. if the identifier is “firstbooknapole00gruagoog”, then relpath should return “fi/og/firstbooknapole00gruagoog”, i.e. probably later to become something like “/data/library/fi/og/firstbooknapole00gruagoog”



38
39
40
# File 'lib/wordtree/disk/library_locator.rb', line 38

def relpath
  File.join(first, last, @id)
end