neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
51 stars 14 forks source link

-e does not exclude folders #7

Closed ghost closed 5 years ago

ghost commented 6 years ago

% neocities version 0.0.7 % neocities push -e ttf .

Expected: ttf folder is not uploaded Got: Uploading ttf/FiraSans-UltraLightItalic.ttf ... EXISTS etc.

ghost commented 6 years ago

Reproduced with 0.0.9

paths.select {|p|
  !excluded_files.include?(Pathname.new(p).dirname.to_s)
}

It even works when p == 'hello' or something because then .dirname.to_s will return '.'

kyledrake commented 5 years ago

Will be fixed in 0.0.12, thank you!