AzureBlobFileSystem.AzureBlobStorageProvider.TryCreateFolder C# (CSharp) Method

TryCreateFolder() public method

public TryCreateFolder ( string path ) : bool
path string
return 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;
            }
        }