fixed: winix_subdomain ezc function

didn't print the subdomain
added: to rm winix function:
       bool Rm::RemoveItemByPath(const std::wstring & path, bool check_access)
fixed: in Upload winix function
       when uploading an image we have to get
       a mount point where the image is placed (parent dir)
       (it was cur->mount beforehand)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@844 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-06-03 02:14:33 +00:00
parent b605fb0a77
commit 86d6c96aeb
4 changed files with 66 additions and 24 deletions

View File

@@ -35,7 +35,13 @@ public:
// removing either a directory or a symlink or a file
// if item_id is a directory then the whole subdirectories are removed too
void RemoveItemById(long item_id, bool check_access = true);
bool RemoveItemById(long item_id, bool check_access = true);
// removing either a directory or a symlink or a file
// if path is a directory then the whole subdirectories are removed too
// path must begin with a slash (or can be empty then the root directory is removed)
bool RemoveItemByPath(const std::wstring & path, bool check_access = true);
private:
@@ -51,6 +57,9 @@ private:
DbItemQuery rm_by_id_iq;
Item rm_by_id_item;
std::vector<Item*> rm_path_dir_tab;
Item rm_path_item;
bool HasAccessToDir(const Item & dir, bool only_content);
void Prepare();
void Clear();