elixir-lang / elixir

Elixir is a dynamic, functional language for building scalable and maintainable applications
https://elixir-lang.org/
Apache License 2.0
24.29k stars 3.35k forks source link

mix.copy() does not work on folders if there is a dot in the directory name #4892

Closed yahya-uddin closed 8 years ago

yahya-uddin commented 8 years ago

Environment

[15:33:06] CLI version 1.2.1
[15:33:06] Local version 3.9.1

I have found that if I use elixir on a directory that contains a dot, it will only copy the folder, but not the contents inside.

For example consider copying a folder called public/a.something at the root of the project:

exlixir(function(mix) {
    mix.copy('a.something', 'public/a.something');
});

The above will only make an empty directory called a.something and not copy its contents.

On the other hand the following works fine if the folder is called a:

exlixir(function(mix) {
    mix.copy('a', 'public/a');
});

Expected behaviour

It should have copied the entire folder as well as the contents within it.

whatyouhide commented 8 years ago

You're probably talking about this, not Elixir the programming language :) You can open an issue on https://github.com/laravel/elixir probably.

yahya-uddin commented 8 years ago

Apologies. Feel a bit stupid now!

whatyouhide commented 8 years ago

@anik786 no problem, it happens to everyone :D

eksperimental commented 8 years ago

They also have something called "mix"?! Actually thats the first line u see in their getting started guide https://laravel.com/docs/5.1/elixir#introduction

elixir(function(mix) {
    mix.sass('app.scss')
       .coffee('app.coffee');
});

What a coincidence

yahya-uddin commented 8 years ago

I know lol. That's why I was confused!