[Saga-devel] [SAGA] #319: mkdir fails. with boost exception!
SAGA
saga-devel at cct.lsu.edu
Tue Jan 6 05:47:39 CST 2009
#319: mkdir fails. with boost exception!
----------------------------------+-----------------------------------------
Reporter: amerzky | Owner: hkaiser
Type: defect | Status: new
Priority: blocker | Milestone: 1.1.1 (Edinburgh)
Component: Default File Adaptor | Version: SVN
Keywords: |
----------------------------------+-----------------------------------------
{{{
#include <saga/saga.hpp>
int main ()
{
try
{
saga::url u
("file://localhost//Users/merzky/.saga/adaptors/ssh/ssh_file/mnt/");
std::cout << " trying to create " << u << "\n";
saga::filesystem::directory d (u,
saga::filesystem::Create |
saga::filesystem::CreateParents);
}
catch ( const saga::exception & e )
{
std::cerr << "cannot create directory\n";
}
}
}}}
results in
{{{
Jonas merzky ~/links/saga/trunk/examples/misc : ./dir
[...]
Trying to create CPI: directory_cpi for operation: __init__
from proxy for CPI: directory_cpi using adaptor instance: default_file
(ab42b852-dbe7-11dd-8737-5be5b703e419)
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::string,
boost::filesystem::path_traits> >'
what(): boost::filesystem::create_directory
Abort
}}}
--
Ticket URL: <http://fortytwo.cct.lsu.edu:8000/SAGA/ticket/319>
SAGA <http://saga.cct.lsu.edu/>
SAGA - Simple API for Grid Applications - C++ reference implementation
More information about the saga-devel
mailing list