BinaryRage.Storage.createDirectoriesBasedOnKeyAndFilelocation C# (CSharp) 메소드

createDirectoriesBasedOnKeyAndFilelocation() 개인적인 정적인 메소드

private static createDirectoriesBasedOnKeyAndFilelocation ( string key, string filelocation ) : string
key string
filelocation string
리턴 string
        private static string createDirectoriesBasedOnKeyAndFilelocation(string key, string filelocation)
        {
            string pathSoFar = "";
            foreach (var folder in GetFolders(key, filelocation))
            {
                try
                {
                    pathSoFar = Path.Combine(pathSoFar, folder);
                    if (!Directory.Exists(pathSoFar))
                        Directory.CreateDirectory(pathSoFar);
                }
                catch (Exception)
                {

                }
            }
            return pathSoFar;
        }