You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2022/01/15 10:13:31 UTC

[GitHub] [jena] afs commented on a change in pull request #1164: JENA-2208: Improve TDB2 xloader

afs commented on a change in pull request #1164:
URL: https://github.com/apache/jena/pull/1164#discussion_r785293463



##########
File path: apache-jena/bin/tdb2.xloader
##########
@@ -298,7 +315,26 @@ if [[ -z $LOC ]] ; then
     abort 1 "No directory name for the database"
 fi
 
+## Don't mess up an existing database!
+if [ -e "$LOC" ]; then
+    abort 3 "Directory $LOC already exists"
+fi
+
 [[ -z $TMPDIR ]] && TMPDIR=$LOC
+
+if [[ ! -e $TMPDIR ]] ; then
+    mkdir "$TMPDIR"

Review comment:
       Good idea.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org