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

Version Path
trackler-2.2.1.180 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.179 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.178 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.177 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.176 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.175 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.174 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.173 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.172 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.171 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.170 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.169 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.167 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.166 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.165 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.164 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.163 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.162 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.161 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.160 tracks/erlang/testgen/src/tg_file_tools.erl