You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error copying directory to _static in Sphinx #48331
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/birkenfeld'closed_at=<Date2008-10-18.20:55:26.622>created_at=<Date2008-10-08.22:28:35.248>labels= ['type-crash', 'docs']
title='Error copying directory to _static in Sphinx'updated_at=<Date2008-10-18.20:55:26.620>user='https://bugs.python.org/tcdelaney'
If there is a directory to be copied to _static, Sphinx first attempts
to delete any directory by the same name in the _static directory. See
attached sphinx_static_exc.txt for the exception.
The simplest fix is to change the call (line 595, Sphinx 0.4.2) to::
shutil.rmtree(targetname)
to::
shutil.rmtree(targetname, ignore_errors=True)
It would also be preferable if instead of blindly doing rmtree/copytree,
only updated files be copied to _static.
Activity
tcdelaney commentedon Oct 8, 2008
If there is a directory to be copied to _static, Sphinx first attempts
to delete any directory by the same name in the _static directory. See
attached sphinx_static_exc.txt for the exception.
The simplest fix is to change the call (line 595, Sphinx 0.4.2) to::
to::
It would also be preferable if instead of blindly doing rmtree/copytree,
only updated files be copied to _static.
tcdelaney commentedon Oct 8, 2008
Oops - didn't complete my thought. The issue is that if the directory
does not already exist, the attached exception is raised.
birkenfeld commentedon Oct 18, 2008
But there is a "path.exists()" condition around the rmtree, isn't there?
tcdelaney commentedon Oct 18, 2008
Confirmed fixed in 0.43 - this issue can be closed.
birkenfeld commentedon Oct 18, 2008
Great! Thanks for the patience.