"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.StorageUtils = void 0;
/**
 * Class to contain storage-related utility methods
 */
class StorageUtils {
    /**
     * Splits the object path into the namespace and path.
     */
    static splitNamespacePath(objectPath) {
        if (objectPath === undefined) {
            return undefined;
        }
        let namespace = '';
        if (objectPath.includes(StorageUtils.namespaceSeparator)) {
            namespace = objectPath.slice(0, objectPath.indexOf(StorageUtils.namespaceSeparator));
            objectPath = objectPath.slice(objectPath.indexOf(StorageUtils.namespaceSeparator) + 1);
        }
        return [namespace, objectPath];
    }
}
exports.StorageUtils = StorageUtils;
/**
 * The namespace separator
 */
StorageUtils.namespaceSeparator = ':/';
//# sourceMappingURL=StorageUtils.js.map