EnigmaticaModpacks / ModpackUploader

Automation tool for uploading Modpacks to CurseForge.
Apache License 2.0
15 stars 9 forks source link

allows adding a specific file in a folder by creating the folder first in overridesFolder #28

Closed FederAndInk closed 1 year ago

FederAndInk commented 1 year ago

allows doing this:

$FOLDERS_TO_INCLUDE_IN_CLIENT_FILES = @(
    "dir/file"
)
NielsPilgaard commented 1 year ago

Oh nice, thanks for the PR :D

Would you mind explaining what Split-Path does here? I don't really get it

FederAndInk commented 1 year ago

split-path by default is like dirname on unix, getting the parent directory of a path

windows command names sucks

FederAndInk commented 1 year ago

Oh nice, thanks for the PR :D

Thanks, no problem :+1:

here is the doc too: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/split-path?view=powershell-7.2#example-3-get-the-parent-container

Split-Path (Microsoft.PowerShell.Management) - PowerShell
The Split-Path cmdlet returns only the specified part of a path, such as the parent folder, a subfolder, or a file name. It can also get items that are referenced by the split path and tell whether the path is relative or absolute. You can use this cmdlet to get or submit only a selected part of a path.