mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 12:28:35 +02:00
Feature #462: url support
- curl enhancements (push/pull multiple files) - now supports push/pull to/from filesystem
This commit is contained in:
parent
042d7b40de
commit
1a16b3ae6b
7 changed files with 144 additions and 77 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue