Changeset 6 in code for trunk/cli


Ignore:
Timestamp:
Jun 16, 2022, 9:59:30 PM (3 years ago)
Author:
fox
Message:

txt publish <id>; file and convert to standard dirs

Location:
trunk/cli
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/dune

    r3 r6  
    22 (name txt)
    33 (public_name txt)
    4  (modules txt authors convert conversion file index last listing new topics html atom gemini pull)
     4 (modules txt authors convert conversion file index last listing new topics html atom gemini publish pull)
    55 (libraries text_parse.converter text_parse.parsers logarion msgpck curl str cmdliner))
  • trunk/cli/file.ml

    r3 r6  
    1 let split_filetypes files =
    2         let acc (dirs, files) x = if Sys.is_directory x
    3                 then (x::dirs, files) else (dirs, x::files) in
    4         List.fold_left acc ([],[]) files
    5 
    61open Logarion
    72let file files =
    8         let dirs, files = split_filetypes files in
     3        let dirs, files = File_store.split_filetypes files in
    94        let _link_as_named dir file = Unix.link file (Filename.concat dir file) in
    105        let link_with_id dir file =
     
    1510
    1611let unfile files =
    17         let dirs, files = split_filetypes files in
     12        let dirs, files = File_store.split_filetypes files in
    1813        let unlink dir file = try Unix.unlink (Filename.concat dir file)
    1914                with Unix.(Unix_error(ENOENT,_,_))-> () in
  • trunk/cli/txt.ml

    r3 r6  
    1515        Listing.term;
    1616        New.term;
     17        Publish.term;
    1718        Pull.term;
    1819        Topics.term;
Note: See TracChangeset for help on using the changeset viewer.