Folders are not deleted from the site folder in "Explore"

Issues related to previewing and publishing your web site.
Post Reply
User avatar
VictorKrs
 
 
Posts: 321
Joined: Sun May 17, 2020 8:08 pm

Folders are not deleted from the site folder in "Explore"

Post by VictorKrs »

Good afternoon!

When publishing a site to the server, it is possible to view the site files by clicking the "Explore" button.
Faced with a slight inconvenience - the site files can be deleted (including highlighting everything), and the folder (for example, "images:) is impossible. It is deleted only after you delete its contents. Quite often it is required to delete all files from the site folder, this restriction lengthens the deletion process:(
User avatar
Pablo
 
Posts: 23441
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Folders are not deleted from the site folder in "Explore"

Post by Pablo »

This is behavior by design, so you don't accidentally delete the entire folder. when it's not empty.
Note that this conform the FTP specifications:
https://www.php.net/manual/en/function.ftp-rmdir.php
This must be either an absolute or relative path to an empty directory.
User avatar
Bluesman
 
 
Posts: 1198
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Folders are not deleted from the site folder in "Explore"

Post by Bluesman »

VictorKrs wrote: Thu Feb 16, 2023 1:14 pm Good afternoon!

When publishing a site to the server, it is possible to view the site files by clicking the "Explore" button.
Faced with a slight inconvenience - the site files can be deleted (including highlighting everything), and the folder (for example, "images:) is impossible. It is deleted only after you delete its contents. Quite often it is required to delete all files from the site folder, this restriction lengthens the deletion process:(
I can agree with this opinion, just stumbled on this yesterday and when having many folders with files inside... or even more irritating when having more folders with files inside it gets to much. So I had to use my external ftp file manager for this operation :)
"Make My Day"

See my Website
User avatar
VictorKrs
 
 
Posts: 321
Joined: Sun May 17, 2020 8:08 pm

Re: Folders are not deleted from the site folder in "Explore"

Post by VictorKrs »

Bluesman wrote: Thu Feb 16, 2023 3:09 pm
VictorKrs wrote: Thu Feb 16, 2023 1:14 pm Good afternoon!

When publishing a site to the server, it is possible to view the site files by clicking the "Explore" button.
Faced with a slight inconvenience - the site files can be deleted (including highlighting everything), and the folder (for example, "images:) is impossible. It is deleted only after you delete its contents. Quite often it is required to delete all files from the site folder, this restriction lengthens the deletion process:(
I can agree with this opinion, just stumbled on this yesterday and when having many folders with files inside... or even more irritating when having more folders with files inside it gets to much. So I had to use my external ftp file manager for this operation :)
Thank you Bluesman for confirming the presence of this inconvenience! If it will be solved by means of WB, it would be good!
Post Reply