aboutsummaryrefslogtreecommitdiff
path: root/src/connection.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-03-09 16:32:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-03-09 16:34:33 -0700
commit6d1d7ea0bbd0ef970e22f4c87775f95fb3b8452b (patch)
tree5c93462a94a019b5f8f3a55299d3f04fe6b2aedd /src/connection.lisp
parent7cc46462f5ca23723317c2b4b6099ac7daaf7258 (diff)
downloadconsfigurator-6d1d7ea0bbd0ef970e22f4c87775f95fb3b8452b.tar.gz
add "local" and "remote" to the names of some exported symbols
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r--src/connection.lisp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/connection.lisp b/src/connection.lisp
index 9a7584f..d5d1618 100644
--- a/src/connection.lisp
+++ b/src/connection.lisp
@@ -521,10 +521,10 @@ expected."
(defun runlines (&rest args)
(lines (apply #'run args)))
-(defun test (&rest args)
+(defun remote-test (&rest args)
(zerop (apply #'mrun :for-exit "test" args)))
-(defun mountpointp (path)
+(defun remote-mount-point-p (path)
"Is PATH a mount point?
Uses mountpoint(1) from util-linux, so add a property requiring OS:LINUX or a
@@ -543,9 +543,9 @@ subclass to the :HOSTATTRS subroutine of properties calling this."
(defun remote-exists-p (&rest paths)
"Does each of PATHS exists?
PATH may be any kind of file, including directories."
- (apply #'test (loop for path on paths
- nconc (list "-e" (car path))
- when (cdr path) collect "-a")))
+ (apply #'remote-test (loop for path on paths
+ nconc (list "-e" (car path))
+ when (cdr path) collect "-a")))
(defun remote-file-stats (path)
"Get the numeric mode, size in bytes and mtime of PATH, or NIL if it does not