AzureBlobFileSystem.AzureBlobStorageProvider.TryCreateFolder C# (CSharp) Метод

TryCreateFolder() публичный Метод

public TryCreateFolder ( string path ) : bool
path string
Результат bool
        public bool TryCreateFolder(string path)
        {
            try
            {
                var container = EnsurePathIsRelativeAndEnsureContainer(ref path);

                if (!container.DirectoryExists(path))
                {
                    CreateFolder(path);
                    return true;
                }

                // return false to be consistent with FileSystemProvider's implementation
                return false;
            }
            catch
            {
                return false;
            }
        }