Example #1
0
        public bool FolderExists(string path)
        {
            //Can happen...
            if (path.Trim().Length == 0)
            {
                return(true);                                      //Holder of drives exists and walkable...
            }
            if (path[1] != ':')
            {
                throw new Exception("Not absolute path: " + path);
            }

            RscStore_Base store = GetStore(path);

            if (store == null)
            {
                throw new Exception("Unknown store: " + path);
            }

            return(store.FolderExists(GetStorePath(path)));
        }
Example #2
0
        public void CreateFolder(string path)
        {
            if (path[1] != ':')
            {
                throw new Exception("Not absolute path: " + path);
            }

            RscStore_Base store = GetStore(path);

            if (store == null)
            {
                throw new Exception("Unknown store: " + path);
            }

            string sStorePath = GetStorePath(path);

            if (!store.FolderExists(sStorePath))                //Do not delete this... ...backward compatibility.
            {
                store.CreateFolder(sStorePath);
            }
        }