Schweinepriester / beets-config

Config for https://github.com/beetbox/beets
MIT License
2 stars 4 forks source link

Plugin to remove original some_folder_or_archive import source #31

Open Schweinepriester opened 3 years ago

Schweinepriester commented 3 years ago

Like https://github.com/beetbox/beets/issues/1663 but as a plugin for now.

Schweinepriester commented 3 years ago
<#
1. Install Recycle (https://stackoverflow.com/a/41985972)
2. Put into $profile (https://dev.to/seankilleen/how-to-create-a-powershell-alias-with-parameters-3g53)
3. ???
4. Profit

#>
function beets([string]$Path)
{
    beet -vv import "$Path"
    # TODO implement checking for $LASTEXITCODE === 0 before continuing
    Remove-ItemSafely "$Path"
}