bishop335 / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

Gallery folder is not deleted #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new gallery
2. Upload a few images
3. Delete the gallery

What is the expected output? What do you see instead?
The gallery should have been deleted from the physical path. The gallery
folder still exists.

What version of the product are you using? On what operating system?
Code checked out from the trunk

Please provide any additional information below.
This is so because the httphelper.ExpandTildePath function does not return
the physical folder name. Instead, it is returned something like
/images/localhost/blog1/15/ in my system. This does not map relative to the
web application directory in my system. Therefore, the
if(Directory.Exists(galleryFolder)) condition in Execute method at
DeleteDirectoryCommand.cs always returns false.

Original issue reported on code.google.com by shankarkrupa@gmail.com on 23 Mar 2010 at 10:17

GoogleCodeExporter commented 9 years ago
Fixed in r4196

Original comment by haac...@gmail.com on 16 May 2011 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by Simon.JPhilp on 29 May 2011 at 4:52