Azure:409冲突:无法删除目录.它不为空或不允许访问 [英] Azure: 409 Conflict: Cannot delete directory. It is either not empty or access is not allowed

查看:191
本文介绍了Azure:409冲突:无法删除目录.它不为空或不允许访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Azure与Node js App Service一起使用. 当我尝试使用node_modules文件夹中的ftp或kudu应用程序删除空文件夹时,出现错误: 409冲突:无法删除目录.它不为空或不允许访问.此文件夹是完全空的.我如何删除它?

I use Azure with node js App Service. When i try to delete empty folder using ftp or kudu app in node_modules folders i get error: 409 Conflict: Cannot delete directory. It is either not empty or access is not allowed. This folder is totally empty. How i can delete it?

推荐答案

所有Azure Web应用程序(以及移动应用程序/服务,Web作业和功能)都在称为沙箱的安全环境中运行.每个应用程序都在其自己的沙箱中运行,从而将其执行与同一台计算机上的其他实例隔离开来,并提供其他程度的安全性和隐私性,否则这些安全性和隐私性将是不可用的.有关更多详细信息,请参见此文章.

All Azure Web Apps (as well as Mobile App/Services, WebJobs and Functions) run in a secure environment called a sandbox. Each app runs inside its own sandbox, isolating its execution from other instances on the same machine as well as providing an additional degree of security and privacy which would otherwise not be available. For more details, refer to this article.

有关目录级别的访问,请参阅以下内容:

For directory level access please refer the below:

主目录访问(d:\ home):

Home directory access (d:\home):

每个Azure Web App都有一个由Azure存储存储/支持的主目录.该网络共享是应用程序存储其内容的位置.此目录可用于具有读/写访问权限的沙箱.

Every Azure Web App has a home directory stored/backed by Azure Storage. This network share is where applications store their content. This directory is available for the sandbox with read/write access.

沙箱在内核模式下实现了动态符号链接,该链接将d:\ home映射到客户主目录.这样做是为了消除客户在访问站点时保持引用自己的网络共享路径的需要.无论站点在何处运行,或在VM上运行多少个站点,每个站点都可以使用d:\ home访问其主目录.

The sandbox implements a dynamic symbolic link in kernel mode which maps d:\home to the customer home directory. This is done to remove the need of the customer to keep referencing their own network share path when accessing the site. No matter where the site runs, or how many sites run on a VM, each can access their home directory using d:\home.

本地目录访问(d:\ local):

Local directory access (d:\local):

这是一个临时目录,可以在不再需要时删除.该目录是存储应用程序临时数据的地方.该应用程序自然具有对该目录的读/写访问权限.

This is a temporary directory and can be deleted when no longer needed. This directory is a place to store temporary data for the application. The application naturally has read/write access to this directory.

请注意,scm站点(运行Kudu的站点)中的d:\ local文件夹与主站点(运行Web应用程序的站点)中的d:\ local文件夹不同.结果,他们看不到彼此的本地文件.

Note that the d:\local folder in the scm site (where Kudu runs) is not the same as the one in the main site (where the web app runs). As a result, they cannot see each other's local files.

如果尚未尝试过此操作,请在Kudu控制台中使用 rmdir目录名/s/q 命令删除该目录,然后查看是否可行.

Incase if you haven’t tried this already, use the rmdir directoryname /s /q command in Kudu Console to delete the directory and see if that works.

您还可以从Web App控制台运行此命令.要访问,请转到Web应用->开发工具->控制台

You can also run this command from Web App console. To access, Goto Web app -> Development Tools -> Console

希望这会有所帮助.

这篇关于Azure:409冲突:无法删除目录.它不为空或不允许访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆