Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
<comment-ja>
??????????

@param file: ?????????
@return: ??
</comment-ja>
<comment-en>
remove file

@param file: The name of removed file(more...)

        def remove_file(file) :
    """
    
    ??????????

    @param file: ?????????
    @return: ??
    
    
    remove file

    @param file: The name of removed file
    @return: None
    
    """
    if not os.path.exists(file):
        raise KaresansuiLibException("Error: %s not exists" % file)

    try:
        os.remove(file)
    except OSError, err:
        raise KaresansuiLibException("OSError: %s" % str(err))
        


src/k/a/karesansui-HEAD/bin/delete_bonding.py   karesansui(Download)
    import karesansui
    from karesansui import __version__
    from karesansui.lib.utils import load_locale, execute_command, get_ifconfig_info, \
        is_writable, create_file, move_file, remove_file, get_bridge_info
    from karesansui.lib.dict_op import DictOp
 
        self.up_progress(10)
        remove_file("%s/ifcfg-%s" % (NETWORK_IFCFG_DIR, opts.dev))
 
        self.up_progress(10)
                raise KssCommandException('Failure delete bridge. bridge:%s' % (dev, brif))
 
            remove_file("%s/ifcfg-%s" % (NETWORK_IFCFG_DIR, bond_bridge))
 
        #

src/k/a/karesansui-HEAD/karesansui/gadget/icon.py   karesansui(Download)
    CHECK_EMPTY, CHECK_VALID, CHECK_LENGTH, CHECK_MIN, CHECK_MAX
from karesansui.lib.const import ICON_DIR_TPL
from karesansui.lib.utils import \
    create_file, remove_file, uniq_filename, is_param, is_path
 
 
        try:
            remove_file(icon_realpath)
        except OSError, ose:
            self.logger.error("Failed to remove icon file. - filename=%s" % icon_filename)

src/k/a/karesansui-HEAD/bin/apply_lighttpdconf.py   karesansui(Download)
    import karesansui
    from karesansui import __version__
    from karesansui.lib.utils import load_locale, copy_file, remove_file
    from karesansui.lib.const import LIGHTTPD_CONF_TEMP_DIR,\
        LIGHTTPD_PORT_CONFIG, LIGHTTPD_ACCESS_CONFIG, LIGHTTPD_SSL_CONFIG
            for dest, src in tmp_configfiles.items():
                copy_file(src, opts.dest + '/' + dest)
                remove_file(src)
 
            self.up_progress(40)

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1reportby1by1.py   karesansui(Download)
import karesansui
from karesansui.lib.rest import Rest, auth, OUTPUT_TYPE_FILE
from karesansui.lib.utils import is_param, is_empty, \
    str2datetime, create_epochsec, remove_file
from karesansui.lib.rrd.rrd import RRD