mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
Update
This commit is contained in:
@@ -60,12 +60,11 @@ end
|
||||
---Remove a backup file
|
||||
---@param backup_path string - The path of the backup file to remove
|
||||
local function remove_backup(backup_path)
|
||||
print("Removing backup file:", backup_path)
|
||||
local success, err = os.remove(backup_path)
|
||||
if not success then
|
||||
print("Warning: Could not remove backup file:", err)
|
||||
print("You may want to manually remove it:", backup_path)
|
||||
else
|
||||
-- Check file exists and remove it
|
||||
local file = io.open(backup_path, "r")
|
||||
if file then
|
||||
file:close()
|
||||
os.remove(backup_path)
|
||||
print("Backup file removed successfully")
|
||||
end
|
||||
end
|
||||
|
@@ -9,8 +9,8 @@ local function to_camel_case(snake_str)
|
||||
end
|
||||
|
||||
|
||||
function M.create_druid_widget(opts)
|
||||
local gui_filepath = editor.get(opts.selection, "path")
|
||||
function M.create_druid_widget(selection)
|
||||
local gui_filepath = editor.get(selection, "path")
|
||||
local filename = gui_filepath:match("([^/]+)%.gui$")
|
||||
print("Create Druid widget for", gui_filepath)
|
||||
|
||||
|
Reference in New Issue
Block a user