Quarto failed to remove directory
@cderv is already working on this.
Since Nov 6, 2025.
Assessment
This issue has not been assessed yet.
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Quarto refusing to remove directory when it uses both long path and short path format in Windows 11.
Error message
ERROR: Refusing to remove directory C:/Users/emil.hagglund/AppData/Local/Temp/Rtmpw3MI6F/long-report-output-folder/long-report-output-folder_files that isn't a subdirectory of C:\Users\EMIL~1.HAG\AppData\Local\Temp\Rtmpw3MI6F\long-report-output-folder
Stack trace:
at safeRemoveDirSync (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:2540:11)
at file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:114464:9
at Array.forEach (<anonymous>)
at renderCleanup (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:114462:23)
at file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:115404:44
at withTiming (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:18977:21)
at Object.complete (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:115404:9)
at eventLoopTick (ext:core/01_core.js:178:7)
at async Object.onPostProcess (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:123981:28)
at async renderFileInternal (file:///C:/Users/emil.hagglund/AppData/Local/Programs/Quarto/bin/quarto.js:123965:3)
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Your environment
- OS: Windows 11
Quarto check output
Quarto 1.8.25
[>] Checking environment information...
Quarto cache location: C:\Users\emil.hagglund\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.8.25
Path: C:\Users\emil.hagglund\AppData\Local\Programs\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\emil.hagglund\AppData\Roaming\TinyTeX\bin\windows\
Version: 2025
[>] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: C:\Program Files\Google\Chrome\Application\chrome.exe
Source: Windows Registry
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....(None)
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
[>] Checking R installation...........OK
Version: 4.4.0
Path: C:/Users/emil.hagglund/AppData/Local/Programs/R/R-4.4.0
LibPaths:
- C:/Users/emil.hagglund/AppData/Local/R/win-library/4.4
- C:/Users/emil.hagglund/AppData/Local/Programs/R/R-4.4.0/library
knitr: 1.50
rmarkdown: 2.30
[>] Checking Knitr engine render......OK
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto-cli
-
binder bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
quarto-dev/quarto-cli#14907 · 3 comments ·
-
brand bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
quarto-dev/quarto-cli#14875 ·
-
Percent scripts: accept raw-string (r""") and '''-delimited markdown cells, as jupytext writes them Openengines-jupyter enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14850 · 2 comments ·
All issues in quarto-dev/quarto-cli
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
ecosystem wording
Difficulty 1/5 Under an hour Newbie friendliness 90/100
matrix-org/matrix.org#3649 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·