Esempio n. 1
0
        public static String DecodePath(String path, HttpServerUtilityBase server)
        {
            if (String.IsNullOrEmpty(path) || path == "/")
            {
                path = UtilityOperations.GetDockerRootPath(server);
            }
            String decodePath = Models.FileModel.Decode(path);

            return(decodePath);
        }
Esempio n. 2
0
        public void InsertNewUserFolder(HttpServerUtilityBase server, String userName)
        {
            String virtualPath = UtilityOperations.GetDockerRootPath();
            String decodePath  = UtilityOperations.DecodePath(UtilityOperations.GetServerMapPath(virtualPath), server);
            String folderPath  = System.IO.Path.Combine(decodePath, userName);

            if (folderPath != "\\")
            {
                if (!System.IO.Directory.Exists(folderPath))
                {
                    InsertNewFolder(virtualPath, folderPath, userName, userName);
                }
            }
        }