Find common directory path: Difference between revisions

m
(Added Arturo implementation)
Line 186:
 
<lang rebol>commonPathPrefix: function [lst][
paths: map lst => [split.pathby:"/" &]
 
common: new []
Line 200:
if found -> 'common ++ part
]
return join.with:"/" ++ join.path common
]
 
1,532

edits