Results 1 to 8 of 8

Thread: Not able to delete file with invalid character in the name

  1. #1
    Guest

    Default Not able to delete file with invalid character in the name

    Hello everyone,

    i've created a file with a name "1411869622\_barbarian ". Now i'm not able to delete it either through web interface or ftp clients (winscp, filezilla). Also, i've tried with php unlink() with no success.

    Can you help me or at least give me some suggestions?
    Thank in advance.

  2. #2
    filsil is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    106

    Default

    PHP unlink should work. Try again with a script in the same directory of your file and check the file name.

  3. #3
    Guest

    Default

    Hi,

    I've tried multiple times to use unlink but unsuccessfully. From folder, from another folder also tried to delete the whole folder but it didn't help either.

  4. #4
    filsil is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    106

    Default

    Can you give me the full path of this file?

  5. #5
    saitfainder's Avatar
    saitfainder is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    300

    Default

    Did you used something like this?

    Code:
    unline("1411869622\\_barbarian ")
    If you use double quotes then you have to escape the backslash.
    "Over thinking, over analyzing separates the body from the mind."

  6. #6
    Guest

    Default

    Hi!

    Yes while unlinking i've also tried escaping the backslash but without success. The full path to the file is
    http://mywebz.altervista.org/d3/seas...622\_barbarian.
    Last edited by mywebz; 10-10-2014 at 10:11 AM.

  7. #7
    saitfainder's Avatar
    saitfainder is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    300

    Default

    I've just executed this code from the root folder and your file has been deleted:

    Code:
    unlink('d3/season_01_data/hc_season/1411869622\_barbarian');
    "Over thinking, over analyzing separates the body from the mind."

  8. #8
    Guest

    Default

    Thank you very much, don't know what i did wrong, but i'm pretty sure i've tried that multiple times.
    Again thank you

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO