embulk-input-sftp 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e082ddfd3a77e9619752b28ddf6ab0cc6046b2b
|
4
|
+
data.tar.gz: 6a419208239b6c68bfee14581da320c8774ebb8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1748b5a9b2a12209d18ec387baa5486792ded7b6dd0348f9c2b96dd5caa85be4c5c84158d0b94a572ff97844d1583ec80eafcc4907ac97089b3d50b9f0606956
|
7
|
+
data.tar.gz: c25afa29d5cbc857bd337686cc8052768685623a749e72b7098c274f6c4584211003bbce33afdd048e38b671997920ac4ec179b47660e5947570156ec2f0a8a9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 0.2.8 - 2018-03-12
|
2
|
+
* [maintenance] Fix SFTP non existent last_path [#28](https://github.com/sakama/embulk-input-sftp/pull/28)
|
3
|
+
|
1
4
|
## 0.2.7 - 2018-03-02
|
2
5
|
* [maintenance] Fix SFTP connection remaining problem [#27](https://github.com/sakama/embulk-input-sftp/pull/27)
|
3
6
|
|
data/build.gradle
CHANGED
Binary file
|
@@ -196,7 +196,12 @@ public class SftpFileInput
|
|
196
196
|
FileSystemOptions fsOptions = initializeFsOptions(task);
|
197
197
|
|
198
198
|
if (task.getLastPath().isPresent() && !task.getLastPath().get().isEmpty()) {
|
199
|
-
|
199
|
+
final FileObject remotedLastPath = manager.resolveFile(getSftpFileUri(task, task.getLastPath().get()), fsOptions);
|
200
|
+
if(remotedLastPath.exists()) {
|
201
|
+
lastKey = remotedLastPath.toString();
|
202
|
+
} else {
|
203
|
+
log.warn("Failed to load last_path due to non-existence in sftp, skip using last_path");
|
204
|
+
}
|
200
205
|
}
|
201
206
|
|
202
207
|
FileObject files = manager.resolveFile(getSftpFileUri(task, task.getPathPrefix()), fsOptions);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-sftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Akama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,10 +69,10 @@ files:
|
|
69
69
|
- src/test/resources/id_rsa.pub
|
70
70
|
- src/test/resources/sample_01.csv
|
71
71
|
- src/test/resources/sample_02.csv
|
72
|
-
- classpath/commons-io-2.6.jar
|
73
72
|
- classpath/commons-logging-1.2.jar
|
74
73
|
- classpath/commons-vfs2-2.2.jar
|
75
|
-
- classpath/
|
74
|
+
- classpath/commons-io-2.6.jar
|
75
|
+
- classpath/embulk-input-sftp-0.2.8.jar
|
76
76
|
- classpath/jsch-0.1.54.jar
|
77
77
|
homepage: https://github.com/embulk/embulk-input-sftp
|
78
78
|
licenses:
|