// 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 is_link (std::string sourceURL) { saga::filesystem::file file (saga::url (sourceURL), saga::filesystem::Read); if(file.is_link()) { std::cout << "True" << std::endl; } else { std::cout << "False" << std::endl; } }