summaryrefslogtreecommitdiff
path: root/sftp-client.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2021-04-23 19:10:38 +0000
committerEd Maste <emaste@FreeBSD.org>2021-04-23 19:10:38 +0000
commit206be79acbdeb88ea254ac622a60a4ee8015c5f6 (patch)
treea2b2db1cfcb757172a91d03ca0c8805185a76e1b /sftp-client.h
parent3bbd8dc96b4466d8e4f850fc0adf7d02e1df2dc7 (diff)
Diffstat (limited to 'sftp-client.h')
-rw-r--r--sftp-client.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sftp-client.h b/sftp-client.h
index 63a9b8b13bdc..32a24a3c4302 100644
--- a/sftp-client.h
+++ b/sftp-client.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.h,v 1.28 2019/01/16 23:23:45 djm Exp $ */
+/* $OpenBSD: sftp-client.h,v 1.29 2020/12/04 02:41:10 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
@@ -142,4 +142,17 @@ int upload_dir(struct sftp_conn *, const char *, const char *, int, int, int,
/* Concatenate paths, taking care of slashes. Caller must free result. */
char *path_append(const char *, const char *);
+/* Make absolute path if relative path and CWD is given. Does not modify
+ * original if the the path is already absolute. */
+char *make_absolute(char *, const char *);
+
+/* Check if remote path is directory */
+int remote_is_dir(struct sftp_conn *conn, const char *path);
+
+/* Check if local path is directory */
+int local_is_dir(const char *path);
+
+/* Check whether path returned from glob(..., GLOB_MARK, ...) is a directory */
+int globpath_is_dir(const char *pathname);
+
#endif