[英]SSIS File System Task Deleting Directory Leaves Directory and Removes all Permissions
I have a rather bizarre issue with an SSIS package I have. 我的SSIS套件有一个非常奇怪的问题。 After processing some files within a Directory I am removing the Directory so my For Each Loop doesn't process the same files again.
在处理了目录中的某些文件之后,我将删除目录,以使我的For Each循环不会再次处理相同的文件。
It fails to Delete the Directory but yet leaves it in the folder and then tells me I do not have access to this folder, I cannot take ownership of it or even move it to another directory. 它无法删除目录,但仍将其保留在文件夹中,然后告诉我我无权访问此文件夹,我无法拥有它的所有权,甚至无法将其移动到另一个目录。
I have even tried a VB.NET Script tasks to try and remove it and I get the same result. 我什至尝试了VB.NET脚本任务来尝试将其删除,但我得到了相同的结果。
A reboot of the server makes the folder disappear - has anyone experienced this before. 重新启动服务器会使文件夹消失-以前没有人经历过。
Regards, 问候,
JML JML
Sounds like the directory is "in use" still but with the deletion pending. 听起来目录仍在“使用中”,但删除正在进行中。 When you reboot, the lock on the directory is cleared and the deletion completes.
重新启动后,目录上的锁将被清除,删除操作将完成。 The discussion at
的讨论
try ing to move a file "The process cannot access the file because it is being used by another process." 尝试移动文件“该进程无法访问该文件,因为该文件正在被另一个进程使用。”
may be helpful. 可能会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.