// Copyright (c) 2008 Ole Weidner // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include "saga-file.hpp" /////////////////////////////////////////////////////////////////////////////// void run_test (std::string sourceURL) { using namespace saga::attributes; SAGA_GUARDED_EXEC ( saga::url u1("file://localhost//etc/passwd"); saga::filesystem::file f1(u1); for(int i=0; i < 100000; i++) { bool a= f1.is_entry(); a = !a; // avoid 'unused var' warning } //std::cout << f1.is_entry() << std::endl; /*f1.close(); std::cout << f1.is_entry() << std::endl; saga::url u2("gridftp://gg101.cct.lsu.edu//etc/"); saga::filesystem::directory d1(u2); std::cout << d1.is_entry() << std::endl; d1.close(); std::cout << d1.is_entry() << std::endl; */ ) }