private void Sync(string filePath) { string fileType = MimeTypes.GetFromExtension(Path.GetExtension(filePath)); var data = File.ReadAllBytes(filePath); string containerPath = Path.GetDirectoryName(filePath); string fileName = Path.GetFileNameWithoutExtension(filePath); foreach (var node in _nodes) { //prendere la porta giusta var client = new Client("default", "default", $"http://{node.PublicIp}:8080"); if (client == null) { continue; } VFS.VfsClient.CreateObject(client, containerPath, fileType, data, fileName); } }