Esempio n. 1
0
        private WebDAVResource GetResource(string[] pathcomps)
        {
            WebDAVResource res = m_RootFolder;

            foreach (string pathcomp in pathcomps)
            {
                res = res.GetResource(Uri.UnescapeDataString(pathcomp));
            }

            return(res);
        }
Esempio n. 2
0
        private WebDAVResource GetResourceTo(string[] pathcomps, out string last)
        {
            WebDAVResource res = m_RootFolder;

            last = Uri.UnescapeDataString(pathcomps[pathcomps.Length - 1]);
            for (int i = 0; i < pathcomps.Length - 1; ++i)
            {
                res = res.GetResource(Uri.UnescapeDataString(pathcomps[i]));
            }

            return(res);
        }