iodar / sort-and-move-files

Powershell script to group files and move them into different folders.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group and Move Items

Usage

IMPORTANT: Currently only Windows is supported but support for Linux is planned.

.\Sort-AndMoveItems.ps1 -SourceFolder .\your\media\source -TargetFolder .\storage\media\files
Parameter Usage
-SourceFolder Folder in which script will recursively search for files
-TargetFolder Folder where script will create folder structure and move files to

Prerequisites For Development

  • pwsh >= 7.x
  • tests: pester >=5.x

Run Tests

Using bash

pwsh -c "Invoke-Pester -Output Detailed"

Using pwsh

Invoke-Pester -Output Detailed

About

Powershell script to group files and move them into different folders.


Languages

Language:PowerShell 100.0%