WikiCrawler/Batch/BatchUploader.cs
/// <summary>
/// Loads the key-value metadata for the asset with the specified key.
/// </summary>
/// <param name="always">If set, will look in the trash and TODO: redownload if necessary.</param>
Loads the key-value metadata for the asset with the specified key.
Loads the key - value metadata for the asset with the specified key .
protected virtual Dictionary<string, string> LoadMetadata(string key, bool always = false)
	{
		string cacheFile = GetMetadataCacheFilename(key);
		if (File.Exists(cacheFile))
		{
			return JsonConvert.DeserializeObject<Dictionary<string, string>>(File.ReadAllText(cacheFile, Encoding.UTF8));
		}
		string trashFile = GetMetadataTrashFilename(key);
		if (File.Exists(trashFile))
		{
			return JsonConvert.DeserializeObject<Dictionary<string, string>>(File.ReadAllText(trashFile, Encoding.UTF8));
		}
		return null;
	}
protected virtual Dictionary < string , string > LoadMetadata ( string key , bool always = false ) { string cacheFile = GetMetadataCacheFilename ( key ) ; if ( File . Exists ( cacheFile ) ) { return JsonConvert . DeserializeObject < Dictionary < string , string > > ( File . ReadAllText ( cacheFile , Encoding . UTF8 ) ) ; } string trashFile = GetMetadataTrashFilename ( key ) ; if ( File . Exists ( trashFile ) ) { return JsonConvert . DeserializeObject < Dictionary < string , string > > ( File . ReadAllText ( trashFile , Encoding . UTF8 ) ) ; } return null ; }
Loads the key-value metadata for the asset with the specified key.
Loads the key - value metadata for the asset with the specified key .
key
string
always
bool
If set, will look in the trash and TODO: redownload if necessary.
If set will look in the trash and TODO : redownload if necessary .