//-----------------------------------------------------------------------
// <copyright company="Daniel Plaisted">
//     Copyright (c) Daniel Plaisted. All rights reserved.
// </copyright>
// This file is a derivation of:
// https://github.com/dsplaisted/PCLStorage
// Which is released under the MS-PL license.
//-----------------------------------------------------------------------

namespace PCLExt.FileStorage
{
    /// <summary>
    /// Specifies what should happen when trying to create/rename a file or folder to a name that already exists.
    /// </summary>
    public enum NameCollisionOption
    {
        /// <summary>
        /// Automatically generate a unique name by appending a number to the name of
        /// the file or folder.
        /// </summary>
        GenerateUniqueName = 0,

        /// <summary>
        /// Replace the existing file or folder. Your app must have permission to access
        /// the location that contains the existing file or folder.
        /// </summary>
        ReplaceExisting = 1,

        /// <summary>
        /// Return an error if another file or folder exists with the same name and abort
        /// the operation.
        /// </summary>
        FailIfExists = 2,
    }
}
