btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

current directory "bug" and infinite loop [win7] #44

Closed SqueeG closed 8 years ago

SqueeG commented 9 years ago

Hey, just wanted to point out that improperly using current directory .\ on windows ends up with some really, really weird issues.

You need to use double slashes (something I was unaware of)

This is right :

mammouth -c -o .\\ .\\
This is wrong :
mammouth -c -o ./ ./
This is wrong, too :
mammouth -c -o .\ .\

If you do NOT use double slashes, most often you will be met with odd errors. You will always be met with an error if your input has the improper syntax.

But when the output is set improperly, you get an infinite loop of "lib" folders, nested within each other. (root dir > lib/lib/lib/lib/lib...etc) Over 26,000 empty subfolders have been created when I let it run.

With other malformed input/output I've found mammouth copying files into the output folder (if one is set). As I said, it's weird.

btwael commented 8 years ago

@SqueeG l just rewrite mammouth from zero with large changes, check it you're problem is solved http://mammouth.wamalaka.com/