changeset 8:3539fbeb4230

planemo upload
author kkonganti
date Tue, 01 Apr 2025 10:27:25 -0400
parents a5055946f9c2
children 9c603577838a
files 0.5.0/workflows/nowayout.nf
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/0.5.0/workflows/nowayout.nf	Mon Mar 31 15:25:02 2025 -0400
+++ b/0.5.0/workflows/nowayout.nf	Tue Apr 01 10:27:25 2025 -0400
@@ -301,10 +301,19 @@
     file_path_obj = file( file_path )
     
     if (msg.toString().find(/(?i)KMA/)) {
-        if (!file_path_obj.parent.exists() || file_path_obj.parent.size() == 0) {
+        if (!file_path_obj.parent.exists()) {
             stopNow("Please check if your ${msg}\n" +
                 "[ ${file_path} ]\nexists and that the files are not of size 0.")
         }
+        
+        // Check if db files within parent path are empty.
+        file_path_obj.eachFileRecurse {
+            if (it.size() == 0) {
+                stopNow("For ${msg}, within\n" +
+                "[ ${file_path} ],\nthe following file is of size 0: ${it.name}")
+            }
+        }
+
     }
     else if (!file_path_obj.exists() || file_path_obj.size() == 0) {
         stopNow("Please check if your ${msg} file\n" +