This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param([string]$s3cmdpath="D:\s3cmd\s3cmd",[string]$s3bucket="www.example.com",[string]$indexdoc="index.html") | |
| #Gzip compress files with extension .html, .js, .xml, .css | |
| $files = Get-ChildItem -Recurse . -Attributes !Directory #Get all items which are not a directory | |
| $otherfiles = New-Object Object | |
| $otherfiles = @() | |
| $compressextensions = (".html",".js",".xml",".css") | |
| foreach($file in $files) | |
| { |