File: Core\PackagingCoreConstants.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.Packaging\NuGet.Packaging.csproj (NuGet.Packaging)
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace NuGet.Packaging.Core
{
    public static class PackagingCoreConstants
    {
        public static readonly string HashFileExtension = ".nupkg.sha512";
        public static readonly string NupkgExtension = ".nupkg";
        public static readonly string NuspecExtension = ".nuspec";
        public static readonly string PackageDownloadMarkerFileExtension = ".packagedownload.marker";
        public static readonly string NupkgMetadataFileExtension = ".nupkg.metadata";

        /// <summary>
        /// _._ denotes an empty folder since OPC does not allow an
        /// actual empty folder.
        /// </summary>
        public static readonly string EmptyFolder = "_._";

        /// <summary>
        /// /_._ can be used to check empty folders from package readers where the / is normalized.
        /// </summary>
        public static readonly string ForwardSlashEmptyFolder = "/" + EmptyFolder;
    }
}