lsegal/yard — Issue #477: `yardoc --asset` behaves differently on first and subsequent calls.
Author: dominikh
Created: 2012-01-29 13:59:54+00:00
State: open

When first executing `yardoc --asset foo:bar`, where `foo` is a directory, `foo` correctly gets copied to `doc/bar`. But on subsequent calls, it gets copied to `doc/bar/bar`. The following shell session should clarify it:

```text
>>> tree
.
├── docs
│ └── images
│ └── foo.png
└── lib

3 directories, 1 file

>>> yardoc --asset docs/images:images
>>> tree
.
├── doc
[snip]
│ ├── images
│ │ └── foo.png
├── docs
│ └── images
│ └── foo.png
└── lib

7 directories, 15 files

>>> yardoc --asset docs/images:images
>>> tree
.
├── doc
[snip]
│ ├── images
│ │ ├── foo.png
│ │ └── images
│ │ └── foo.png
[snip]
├── docs
│ └── images
│ └── foo.png
└── lib

8 directories, 16 files

>>> yardoc --asset docs/images:images
>>> tree
.
├── doc
[snip]
│ ├── images
│ │ ├── foo.png
│ │ └── images
│ │ └── foo.png
[snip]
├── docs
│ └── images
│ └── foo.png
└── lib

8 directories, 16 files

```