-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yardoc --asset
behaves differently on first and subsequent calls.
#477
Comments
This is actually not an error in YARD but a reality of copying directories on a filesystem. The same problem happens in the shell: $ mkdir foo
$ cp -R foo bar
$ tree bar
bar
0 directories, 0 files
$ cp -R foo bar
$ tree bar
bar
`-- foo
1 directory, 0 files Usually the way you work around this is by adding a
|
I guess the question is, should we just force this when src is a directory, or is there a legitimate use of the existing behaviour? |
I personally would just force it, with the following reason: The Edit: Okay, I just saw your note regarding FileUtils and a trailing slash on the source. Considering that that seems to be broken and my rsyncesque suggestion would be a third way... I recommend just forcing it. |
Is the |
When first executing
yardoc --asset foo:bar
, wherefoo
is a directory,foo
correctly gets copied todoc/bar
. But on subsequent calls, it gets copied todoc/bar/bar
. The following shell session should clarify it:The text was updated successfully, but these errors were encountered: