rename conversion script & create directories on script run if they don't exist
It's easier to use when the beginnings of script names aren't similar, and it's still obvious what this does.
This commit is contained in:
1 parent
e0acd6883f
commit
b7e2835c2e
1 file changed
+3
@@ -9,6 +9,9 @@ if config and config.llm_covers and config.llm_covers.calibre_location then
|
||||
calibre_location = config.llm_covers.calibre_location
|
||||
end
|
||||
|
||||
os.execute("mkdir -p raw_ebooks" .. utility.commands.silence_output)
|
||||
os.execute("mkdir -p extracted_texts" .. utility.commands.silence_output)
|
||||
|
||||
utility.ls("raw_ebooks", function(file_name)
|
||||
local _, name, extension = utility.split_path_components(file_name)
|
||||
if extension then
|
||||
Reference in new issue
Block a user