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.78 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.77 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.76 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.75 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.74 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.73 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.72 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.71 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.70 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.69 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.68 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.67 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.66 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.65 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.64 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.63 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.62 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.61 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.60 tracks/erlang/testgen/src/tg_file_tools.erl
trackler-2.2.1.59 tracks/erlang/testgen/src/tg_file_tools.erl