[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 1f0bdf6 071/173: Create directories on remot
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 1f0bdf6 071/173: Create directories on remote When uploading files in a folder that |
Date: |
Sat, 20 Oct 2018 10:36:32 -0400 (EDT) |
branch: externals/ssh-deploy
commit 1f0bdf6c5ed26cf4121f1eed8e819e2619e13a6f
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Create directories on remote When uploading files in a folder that
doesn't exist yet
---
ssh-deploy.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 8b7fdbf..cf6aa27 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -3,14 +3,14 @@
;; Author: Christian Johansson <github.com/cjohansson>
;; Maintainer: Christian Johansson <github.com/cjohansson>
;; Created: 5 Jul 2016
-;; Modified: 15 May 2017
-;; Version: 1.54
+;; Modified: 20 May 2017
+;; Version: 1.55
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
;; This file is not part of GNU Emacs.
-;; Copyright (C) 2016 Christian Johansson
+;; Copyright (C) 2017 Christian Johansson
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -264,6 +264,8 @@
(progn
(if (or (eq t ,force) (not (file-exists-p
,remote-path)) (and (file-exists-p ,revision-path) (ediff-same-file-contents
,revision-path ,remote-path)))
(progn
+ (if (not (file-directory-p
(directory-file-name ,remote-path)))
+ (make-directory (directory-file-name
,remote-path) t))
(copy-file ,local ,remote-path t t t t)
(copy-file ,local ,revision-path t t t t)
(list 0 (format "Upload '%s' completed."
,remote-path)))
@@ -279,6 +281,8 @@
(progn
(async-start
`(lambda()
+ (if (not (file-directory-p (directory-file-name
,remote-path)))
+ (make-directory (directory-file-name ,remote-path)
t))
(copy-directory ,local ,remote-path t t t)
,local)
(lambda(return-path)
- [elpa] externals/ssh-deploy c8b322a 074/173: Fixed markdown syntax, (continued)
- [elpa] externals/ssh-deploy c8b322a 074/173: Fixed markdown syntax, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5e86b22 072/173: Bug fix for automatically creating missing remote directories on upload, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4fbe568 084/173: Updated hydra example to prevent lazy loading of package, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4c35ab7 055/173: Fixed syntax bug in MELPA description, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d324b9f 046/173: Cleaned up code structure and isolated functions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 404aa7e 042/173: Transfers now use TRAMP asynchrously, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c04badf 048/173: Moved autoloading functions last, changed parameters for copy functions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 3569e5e 058/173: More grammatical fixes for README.md, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4005d0e 001/173: My initial commit, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 1c1e379 063/173: More improvement on README for force uploads, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 1f0bdf6 071/173: Create directories on remote When uploading files in a folder that,
Stefan Monnier <=
- [elpa] externals/ssh-deploy b1f9e5b 050/173: Now detects remote changes, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy bf86728 068/173: Added deploy command, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy dbd8608 076/173: Improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 2eab0ee 091/173: Fixed bug for eshell in base directory, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c02b0c9 094/173: Removed debug code from directory-diff function, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 68804ee 097/173: Updated use-package README example, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d2c204f 101/173: Fixed syntax error in example configuration, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4f77b6c 118/173: Silenced code notices and fixes syntax for (display-warning), Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy a3f9ec5 120/173: Now possible to define remote SQL port numbers, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4c1a539 064/173: Added customizable exclusion patterns, Stefan Monnier, 2018/10/20