forked from Baguette/dodb.cr
Fixes an indexing issue in DirectedGraph.
The issue was linked to absolute paths being prepended.master
parent
0599e8bfe5
commit
909eb776e3
|
@ -167,8 +167,10 @@ class DODB::DirectedGraph(V) < DODB::Indexer(V)
|
||||||
"../../../../data/#{key}.json"
|
"../../../../data/#{key}.json"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Roughly matches Index#file_path_index, but works if @storage_root
|
||||||
|
# is an absolute path as well.
|
||||||
private def get_cross_index_data_symlink(node : String)
|
private def get_cross_index_data_symlink(node : String)
|
||||||
"../../../../../#{@index.file_path_index node}"
|
"../../../../../#{@index.indexing_directory}/#{node}.json"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue