Current section
Files
Jump to
Current section
Files
src/internal@path.erl
-module(internal@path).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([basename/1]).
-file("/Users/cdaringe/src/gserde/src/internal/path.gleam", 5).
-spec basename(binary()) -> binary().
basename(Path) ->
_pipe = gleam@string:split(Path, <<"/"/utf8>>),
_pipe@1 = gleam@list:last(_pipe),
gleam@result:unwrap(_pipe@1, <<""/utf8>>).