Skip to content

Commit

Permalink
Update move-file-datetime.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
samhippo authored Apr 27, 2020
1 parent 8d264aa commit e89eb48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion move-file-datetime.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function main()
end
local destFolder = utils.join_path(thisFolder, datetime)
local fileToMove = string.gsub(mp.get_property("path"), "/", "\\")
mp.commandv('run','cmd.exe', '/C', 'md', destFolder ,'&','move', fileToMove, destFolder)
local args = {'cmd.exe', '/C', 'md', destFolder ,'&','move', fileToMove, destFolder}
utils.subprocess({args = args, playback_only = false})
mp.commandv('playlist-remove','current')
end
mp.register_script_message("move-file-datetime", main)

0 comments on commit e89eb48

Please sign in to comment.