Skip to content
Open
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
5 changes: 5 additions & 0 deletions code/common/anymaputils.q
Comment thread
bsofjan marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.anymap.writetoanymap:{[filepath;data] (hsym filepath) 1: data; :(::)}
.anymap.deriveanymapfiles:{[filepath] `$string[filepath],/:("";"#";"##")}
.anymap.util.copyanymap:{[fromfilepath; destfilepath] fromfilepaths:.anymap.deriveanymapfiles[fromfilepath]; .os.cpy[;destfilepath] each fromfilepaths)}
.anymap.util.removeanymap:{[filepath] filepaths:.anymap.deriveanymapfiles[filepath]; .os.del each filepaths)}
.anymap.util.moveanymap:{[fromfilepath; destfilepath] fromfilepaths:.anymap.deriveanymapfiles[fromfilepath]; .os.ren[;destfilepath] each fromfilepaths)}