CClash.FileCacheStore.AddFile C# (CSharp) Method

AddFile() public method

public AddFile ( string key, string filePath, string contentName ) : void
key string
filePath string
contentName string
return void
        public void AddFile(string key, string filePath, string contentName)
        {
            EnsureKey(key);
            var target = MakePath(key, contentName);

            FileUtils.CopyUnlocked(filePath, target);

            if (Added != null)
            {
                Added(this, new FileCacheStoreAddedEventArgs() { SizeKB = (int)(new FileInfo(filePath).Length / 1024) });
            }
        }