Feature #462: url support
- curl enhancements (push/pull multiple files) - now supports push/pull to/from filesystem
This commit is contained in:
@@ -95,7 +95,7 @@ int Transport::execute()
|
||||
argv[1] = opt; // -c
|
||||
argv[2] = (char*)cmdline.c_str(); // e.g. scp undo.data user@host:.task/
|
||||
argv[3] = NULL; // required by execv
|
||||
|
||||
|
||||
int ret = execvp("sh", argv);
|
||||
delete[] argv;
|
||||
|
||||
@@ -116,4 +116,19 @@ int Transport::execute()
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Transport::is_directory(const std::string& path)
|
||||
{
|
||||
return path[path.length()-1] == '/';
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Transport::is_filelist(const std::string& path)
|
||||
{
|
||||
return (path.find ("*") != std::string::npos)
|
||||
|| (path.find ("?") != std::string::npos)
|
||||
|| (path.find ("{") != std::string::npos);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user