lt.objs.files
absolute?
(absolute? path)
append
(append path content & [cb])
Append content to path. Optional callback called after append
basename
(basename path)
(basename path ext)
copy
(copy from to)
Copy file or directory to given path
cwd
Directory process is started in
dirs
(dirs path)
Return directory's directories
filter-walk
(filter-walk func path)
full-path-ls
(full-path-ls path)
Return directory's files as full paths
home
(home)
(home path)
Return users' home directory (e.g. ~/) or path under it
line-ending
Current platform-specific line
ls-sync
(ls-sync path opts)
Return directory's files applying ignore-pattern. Takes map of options with keys:
* :files - When set only returns files
* :dirs - When set only return directories
lt-home
(lt-home)
(lt-home path)
Return LT's home directory
lt-user-dir
(lt-user-dir)
(lt-user-dir path)
Return LT's user directory. Used for storing user-related content e.g.
settings, plugins, logs and caches
move!
(move! from to)
Move file or directory to given path
open
(open path cb)
Open file and in callback return map with file's content in :content
open-sync
(open-sync path)
Open file and return map with file's content in :content
path->mode
(path->mode path)
path->type
(path->type path)
resolve
(resolve base cur)
save
(save path content & [cb])
Save path with given content. Optional callback called after save
separator
Current platform-specific file separator
walk-up-find
(walk-up-find start find)
Starting at start path, walk up parent directories and return first path
whose basename matches find
without-ext
(without-ext path)
writable?
(writable? path)