help deleting a dir please?

help deleting a dir please?

Posted by: user919
Posted on: 2002-04-08 23:22:00

I've got a dir in my space that won't go away, in fact, I renamed the dir "wontgoaway" after several attempts at getting rid of it. There is one file inside it that hass a tilde~ at the beginning of it, I assume this is the problem.

I'm using ws_ftp for my file transfers and I ssume I'm gonne have to learn a new trick to get rid of this sucker. Anyone want to teach me this new trick?

thankee

jason

Re: help deleting a dir please?

Posted by: wil
Posted on: 2002-04-09 01:24:00

Log into your account through shell/telnet.

Move into the directory in question and execute the following command:

rm -r *

Be sure to only execute this _within_ the directory you're trying to get rid of. You will then be able to safely delete the directory.

The reason behind this is that WS_FTP can not delete files begging or ending with certain characters - due to security implacations.

If you want a FTP client that does, try WS_FTP PRO or CuteFTP.

Wil

Re: help deleting a dir please?

Posted by: will
Posted on: 2002-04-09 19:31:00

if you only want to delete one file, you can also do:
% rm ~foo
(escaping the tilde with a backslash). if your user is ftp only, the simplest thing to do is to ask support to remove it for you.

files named with a '-' are trickier, since rm expects that anything starting with a '-' is an argument.

to remove a file like this, do:
% rm ./-blah

Tags: my spacews ftpfile transfershelp