]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/filesystem/test/equivalent.cpp
1 // equivalent program -------------------------------------------------------//
3 // Copyright (c) 2004 Beman Dawes
5 // Use, modification, and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
7 // at http://www.boost.org/LICENSE_1_0.txt)
9 // See library home page at http://www.boost.org/libs/filesystem
11 //----------------------------------------------------------------------------//
13 #include <boost/filesystem/operations.hpp>
17 int main( int argc
, char * argv
[] )
19 boost::filesystem::path::default_name_check( boost::filesystem::native
);
22 std::cout
<< "Usage: equivalent path1 path2\n";
29 eq
= boost::filesystem::equivalent( argv
[1], argv
[2] );
31 catch ( const std::exception
& ex
)
33 std::cout
<< ex
.what() << "\n";
37 std::cout
<< (eq
? "Paths are equivalent\n" : "Paths are not equivalent\n");