Beispiel #1
0
 // ReSharper disable once InconsistentNaming
 private static string EncodeVFSPath(Core.IO.Path remotePath)
 {
     return(string.Concat(
                "/api/vfs/",
                remotePath.FullPath.Replace(" ", "%20").TrimStart('/'),
                remotePath is DirectoryPath ? "/" : string.Empty));
 }
Beispiel #2
0
        // ReSharper disable once InconsistentNaming
        private static void VFSDelete(
            this IKuduClient client,
            Core.IO.Path remotePath)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            if (remotePath == null)
            {
                throw new ArgumentNullException(nameof(remotePath));
            }

            client.HttpDelete(EncodeVFSPath(remotePath));
        }