linkedpipes / etl

LinkedPipes ETL is an RDF based, lightweight ETL tool
https://etl.linkedpipes.com
Other
147 stars 30 forks source link

FilesToSCP: clear directory not working #495

Closed jakubklimek closed 6 years ago

jakubklimek commented 7 years ago

See https://demo.etl.linkedpipes.com/#/pipelines/edit/canvas?pipeline=https:%2F%2Fdemo.etl.linkedpipes.com%2Fresources%2Fpipelines%2Fcreated-1505479762397&execution=https:%2F%2Fdemo.etl.linkedpipes.com%2Fresources%2Fexecutions%2F4e768389-6557-402e-939b-2fdec1e112f4

the directory does not get cleared, in log it fails with:

2017-09-15 14:52:03,149 [Files to SCP] INFO  c.l.p.l.scp.ScpClient - clearDirectory ... : [ $(ls -A /data/test/t2 ) ] && rm -r /data/test/t2/* || :
2017-09-15 14:52:03,152 [Files to SCP] INFO  c.l.p.l.scp.ScpClient - 0 : bash: line 0: [: test.ttl: unary operator expected
skodapetr commented 6 years ago

See ac1ac6109848ad3f61e678cb585870cecb4a6133