hackedteam/core-android-market

View on GitHub
src/libbson/boost/boost_1_53_0/tools/regression/xsl_reports/utils/rename.py

Summary

Maintainability
A
0 mins
Test Coverage

# Copyright (c) MetaCommunications, Inc. 2003-2007
#
# 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)

import os.path
import os


def rename( log, src, dst ):
    log( 'Renaming %s to %s' % ( src, dst ) )
    if os.path.exists( dst ):
        os.unlink( dst )

    os.rename( src, dst )