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.159 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.158 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.157 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.156 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.155 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.154 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.153 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.152 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.151 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.150 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.149 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.148 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.147 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.146 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.145 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.144 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.143 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.142 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.141 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.140 tracks/erlang/testgen/src/tg_file_tools.erl