Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docket: call +fip appropriately #259

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions desk/app/docket.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -656,17 +656,16 @@
?~ file [glob 'file without filename' err]
?~ type [glob (cat 3 'file without type: ' u.file) err]
?^ code [glob (cat 3 'strange encoding: ' u.code) err]
=/ filp (rush u.file fip)
?~ filp [glob (cat 3 'strange filename: ' u.file) err]
=/ filp (fip u.file)
:: ignore metadata files and other "junk"
::TODO consider expanding coverage
::
?: =('.DS_Store' (rear `path`u.filp))
?: =('DS_Store' (rear filp))
[glob err]
:: make sure to exclude the top-level dir from the path
::
:_ err
%+ ~(put by glob) (slag 1 `path`u.filp)
%+ ~(put by glob) (slag 1 filp)
[u.type (as-octs:mimes:html body)]
::
++ split-at
Expand All @@ -682,6 +681,7 @@
::
++ fip
|= fil=@t
^- path
=/ [ext=tape fil=tape] (split-at (trip fil) '.')
=- (snoc - (crip ext))
%+ turn
Expand Down
Loading