mirror of https://github.com/voidlizard/hbs2
bf6 path:split
This commit is contained in:
parent
c5dd315ab5
commit
b28e669049
1
Makefile
1
Makefile
|
@ -19,7 +19,6 @@ BINS := \
|
|||
hbs2 \
|
||||
hbs2-peer \
|
||||
hbs2-keyman \
|
||||
git-remote-hbs2 \
|
||||
hbs2-cli \
|
||||
hbs2-sync \
|
||||
fixme-new \
|
||||
|
|
|
@ -2216,6 +2216,10 @@ internalEntries = do
|
|||
|
||||
_ -> pure nil
|
||||
|
||||
entry $ bindMatch "path:split" $ \case
|
||||
[ StringLike p ] -> pure $ mkList (fmap mkStr (splitPath p))
|
||||
_ -> throwIO $ BadFormException @c nil
|
||||
|
||||
entry $ bindMatch "path:exists?" $ \case
|
||||
[ StringLike p ] -> lift do
|
||||
liftIO (Dir.doesPathExist p) <&> mkBool
|
||||
|
|
Loading…
Reference in New Issue