(ArchiveFormat.IsValidEntryName): new static method.

This commit is contained in:
morkt 2017-12-31 09:00:24 +04:00
parent f8eb7968ca
commit cb54e20e56

View File

@ -133,6 +133,14 @@ namespace GameRes
{
return count > 0 && count < 0x20000;
}
/// <summary>
/// Whether <paramref name="name"/> represents a valid archive entry name.
/// </summary>
public static bool IsValidEntryName (string name)
{
return !string.IsNullOrWhiteSpace (name) && !Path.IsPathRooted (name);
}
}
public enum ArchiveOperation