BinaryRage.Storage.GetExactFileLocation C# (CSharp) Method

GetExactFileLocation() public static method

public static GetExactFileLocation ( string key, string filelocation ) : string
key string
filelocation string
return string
        public static string GetExactFileLocation(string key, string filelocation)
        {
            return CombinePathAndKey(
                path: Path.Combine(GetFolders(key, filelocation).ToArray()),
                key: key);
        }

Usage Example

Beispiel #1
0
        static public void Remove(string key, string filelocation)
        {
            if (!Cache.CacheDic.IsEmpty)
            {
                SimpleObject value;
                Cache.CacheDic.TryRemove(filelocation + key, out value);
            }

            File.Delete(Storage.GetExactFileLocation(key, filelocation));
        }
All Usage Examples Of BinaryRage.Storage::GetExactFileLocation