Sha256: a511ea74323e788553c302da6cf0bff0ebf89147db79f017ea6bb5e557fd1f29
Contents?: true
Size: 344 Bytes
Versions: 125
Compression:
Stored size: 344 Bytes
Contents
-module(tg_file_tools). -export([ extract_name/1, parent_dir/1 ]). extract_name(Name) -> lists:takewhile(fun(C) -> not lists:member(C, [$/, $\\]) end, Name). parent_dir(Dir) -> DirRev0 = lists:reverse(Dir), DirRev1 = lists:dropwhile(fun(C) -> not lists:member(C, [$/, $\\]) end, DirRev0), lists:reverse(tl(DirRev1)).
Version data entries
125 entries across 125 versions & 1 rubygems