|
2026-11-22
| ||
| 22:58 | • Closed ticket [08203e40e3]: Windows: file delete -force fails on a directory c... artifact: 29fcdf14f1 user: jan.nijtmans | |
|
2015-11-23
| ||
| 10:14 | • Ticket [972c35d41d] file copy "permission denied" for Windows symlinks... artifact: 3104730a82 user: twylite | |
|
2013-08-13
| ||
| 13:14 | • Closed ticket [3c13c4ed31]: file delete command fails on symbolic links to direc... artifact: 049f0f6bcf user: jan.nijtmans | |
|
2013-08-12
| ||
| 11:34 | • New ticket [3c13c4ed31]. artifact: 0c61261378 user: anonymous | |
file delete command fails on symbolic links to directories
Closed / Invalid3c13c4ed3149202f546a874457823389ba484be9Created 13 years agoUpdated 13 years ago
Descriptionplain2013-08-12 11:34:37
OS is Windows7 64bit. 'file delete $file' on a symbolic link to a directory fails with: "illegal operation on a directory". (Same behaviour with option -force). The command works fine on a junction point.
Referenced by2
29fcdf14f1Closed ticket [08203e40e3]: Windows: [file delete -force] fails on a directory containing a symlink plus 8 other changes ticket2026-11-22 22:58:123104730a82Ticket [972c35d41d] file copy "permission denied" for Windows symlinks status still Open with 4 other changes ticket2015-11-23 10:14:26
jan.nijtmansplain2013-08-13 13:14:42
What is the content of the $file variable? Does it contain the
".lnk" extension? On Windows, links are just files with the
.lnk extension, and Tcl handles them like that just fine.
I created a directory "bar" and a link "bar1" to it in
Windows explorer. See below for the behavior of Tcl 8.5
on it. My conclusion: works as designed.
I removed the 3 other tickets you submitted today, because
they are all the same issue.
===================================================
>dir
Volume in drive C is WINDOWS
Volume Serial Number is B47C-2648
Directory of C:\bar
13-08-2013 15:04 <DIR> .
13-08-2013 15:04 <DIR> ..
13-08-2013 15:04 <DIR> foo
13-08-2013 15:04 1.089 foo1.lnk
1 File(s) 1.089 bytes
3 Dir(s) 423.596.019.712 bytes free
>tclsh85
% glob *
foo foo1.lnk
% file delete foo1.lnk
% exit
>dir
Volume in drive C is WINDOWS
Volume Serial Number is B47C-2648
Directory of C:\bar
13-08-2013 15:06 <DIR> .
13-08-2013 15:06 <DIR> ..
13-08-2013 15:04 <DIR> foo
0 File(s) 0 bytes
3 Dir(s) 423.596.015.616 bytes free
Log in (anonymous is fine) to add a comment.