id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host 19004,Shared folders: rmdir on open directory fails with ETXTBSY,Anders Kaseorg,,"In a shared folder mounted from a Windows 10 host (1903 build 18362.295) in an Ubuntu guest (I've tried 18.04 or 19.04) with Guest Additions 6.0.12 installed from the Guest Additions CD, the following unexpectedly fails: {{{ root@osboxes:/mnt/test# mkdir foo root@osboxes:/mnt/test# python3 -c 'import shutil; shutil.rmtree(""foo"")' Traceback (most recent call last): File """", line 1, in File ""/usr/lib/python3.7/shutil.py"", line 495, in rmtree onerror(os.rmdir, path, sys.exec_info()) File ""/usr/lib/python3.7/shutil.py"", line 493, in rmtree os.rmdir(path) OSError: [Errno 26] Text file busy: 'foo' }}} `strace` reveals that Python has kept an open fd for the directory being removed. Alternate reproduction recipe: {{{ root@osboxes:/mnt/test# mkdir foo root@osboxes:/mnt/test# perl -e 'opendir D, ""foo""; rmdir ""foo"" or die $!' Text file busy at -e line 1. }}} ",defect,closed,shared folders,VirtualBox 6.0.12,duplicate,,,Linux,Windows