无法删除,具有该名称的文件可能已经存在 [英] Cannot delete, a file with that name may already exist

查看:112
本文介绍了无法删除,具有该名称的文件可能已经存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这开始困扰着我。我最近决定清除我的FTP,并偶然发现了一个旧的Wordpress安装,我忘了我有(哦,是的,非常安全意识到我)。无论如何,由于某种原因删除目录失败,所以我调查了什么是导致堵塞,我已经缩小到wp-content文件。



现在当我尝试删除这个文件时,我可以得到两个错误。我在Windowx资源管理器( FTP )和Web控制面板的文件管理器中尝试过。这里有一些错误镜头:



Windows FTP http: //i35.tinypic.com/4u9sud.jpg
文件管理器http:/ /i33.tinypic.com/28jxp0.jpg



正如您所看到的,我的文件管理器认为该文件是符号链接。虽然它吓到我
我的网络服务器是一个明显的宗教神器,我也很困惑的情况。




  • 我试过重命名文件。

  • 我刷新了FTP视图。 我试过将文件移动到另一个目录(它工作过, 。
  • 我试过编辑文件然后删除。



而我不知所措。有没有特别的方法可以删除SymLinks?我从来没有听说过他们,直到现在。



编辑



Oho Windows你真的是魔术师排序。我决定通过命令提示符来看看我的FTP并猜测是什么?该文件不存在。是否 ftp 忽略符号链接我不知道,但我即将放弃:P

命令提示符查看http://i34.tinypic.com/2cp6ekg.jpg

$ b $首先,请尝试通过电子邮件将您的Web主机用于SSH访问或为您删除符号链接。



如果您获得SSH访问权限,请使用:

  unlink index.php 

如果两者都不起作用:在那里创建一个 PHP 文件(例如remove.php),其中包含:

 <?php unlink(./ index.php)?> 

然后在浏览器中打开该文件,然后移除remove.php文件。


This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-content.

Now when I try to delete this file I can get two errors. I've tried in Windowx Explorer (FTP) and the Web Control Panel's File Manager. Here's some error shots:

Windows FTP http://i35.tinypic.com/4u9sud.jpg File manager http://i33.tinypic.com/28jxp0.jpg

As you can see my File manager thinks the file is a Symbolic Link. While it scares me that my web server is host to an obviously religoious artifact I'm also heavily confused by the situation.

  • I've tried renaming the file.
  • I've refreshed the FTP view.
  • I've tried moving the file to another dir (which worked, no success on deletion though).
  • I've tried editing the file and then deletion.

And I'm at a loss. Is there a special way to delete SymLinks? I've never heard of them, until now.

edit

Oho Windows you really are a magician of sorts. I decided to take a look at my FTP via command prompt and guess what? The file doesn't exist. Whether ftp ignores symlinks I don't know but I'm about to give up :P

Command Prompt View http://i34.tinypic.com/2cp6ekg.jpg

解决方案

First of all, try emailing your webhost either for SSH-access or to remove the symlink for you.

If you get SSH-access, use:

unlink index.php

Or if neither works: Create a PHP file there (for instance remove.php) that contains:

<?php unlink("./index.php") ?>

Then open that file in your browser, afterwards remove the remove.php file.

这篇关于无法删除,具有该名称的文件可能已经存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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