Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
/ sort-and-move-files Public archive

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

Notifications You must be signed in to change notification settings

iodar/sort-and-move-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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