# HG changeset patch # User kkonganti # Date 1743517645 14400 # Node ID 3539fbeb42302c39d7ccd9f041daa0f974f94c04 # Parent a5055946f9c2ec93aa6ce23aeccbbecdc984029a planemo upload diff -r a5055946f9c2 -r 3539fbeb4230 0.5.0/workflows/nowayout.nf --- 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" +