Exemple #1
0
        public string GetFile(string source, string filename, string destination)
        {
            var args = Path.Combine(source, filename) + " " + destination;

            Runner.RunSuccessfully(this.workingDirectory, "echo", args);

            return(destination);
        }
Exemple #2
0
        public string GetFile(string source, string filename, string destination)
        {
            var args = $"--force-local --extract --file={source} -C {destination} {filename}";

            Runner.RunSuccessfully(this.workingDirectory, "tar", args);

            return(destination);
        }
Exemple #3
0
        public string GetFile(string source, string filename, string destination)
        {
            // -o suppresses prompts for and enables overwrites
            var args = $"-o {source} {filename} -d {destination}";

            Runner.RunSuccessfully(this.workingDirectory, "unzip", args);

            return(destination);
        }
Exemple #4
0
        public string GetFile(string source, string filename, string destination)
        {
            var outputPath = Path.Combine(destination, filename);
            var args       = $"-d \"/{filename}\" -b FILE -o \"{outputPath}\" {source}";

            Runner.RunSuccessfully(this.workingDirectory, "h5dump", args);

            return(destination);
        }
Exemple #5
0
        public bool FileExists(string source, string filename)
        {
            Runner.RunSuccessfully(this.workingDirectory, "echo", Path.Combine(source, filename));

            return(true);
        }