def deletebookmark(fullfilename):
	
	if not usingsamba:
		os.remove(urllib.unquote_plus( fullfilename ))
	else:
		fullfilename = fullfilename.replace("\\","/")
		partes = fullfilename.split("/")
		filename = partes[len(partes)-1]
		samba.remove_file(filename,BOOKMARK_PATH)
Ejemplo n.º 2
0
def deletebookmark(fullfilename):
    
    if not usingsamba:
        os.remove(urllib.unquote_plus( fullfilename ))
    else:
        fullfilename = fullfilename.replace("\\","/")
        partes = fullfilename.split("/")
        filename = partes[len(partes)-1]
        samba.remove_file(filename,BOOKMARK_PATH)
def BorrarFavorito(item,Ruta=BOOKMARK_PATH):
    logger.info("[favoritos.py] BorrarFavorito")

    if not usingsamba(Ruta):
        os.remove(item.extra)
    else:
        fullfilename = item.extra.replace("\\","/")
        partes = fullfilename.split("/")
        filename = partes[len(partes)-1]
        samba.remove_file(filename,Ruta)
Ejemplo n.º 4
0
def BorrarFavorito(item, Ruta=BOOKMARK_PATH):
    logger.info("[favoritos.py] BorrarFavorito")

    if not usingsamba(Ruta):
        os.remove(item.extra)
    else:
        fullfilename = item.extra.replace("\\", "/")
        partes = fullfilename.split("/")
        filename = partes[len(partes) - 1]
        samba.remove_file(filename, Ruta)
def deletebookmark(fullfilename,deletepath=BOOKMARK_PATH):
    logger.info("[favoritos.py] deletebookmark(fullfilename="+fullfilename+",deletepath="+deletepath+")")

    if not usingsamba(deletepath):
        os.remove( os.path.join( urllib.unquote_plus( deletepath ) , urllib.unquote_plus( fullfilename )))
    else:
        fullfilename = fullfilename.replace("\\","/")
        partes = fullfilename.split("/")
        filename = partes[len(partes)-1]
        logger.info("[favoritos.py] filename="+filename)
        logger.info("[favoritos.py] deletepath="+deletepath)
        samba.remove_file(filename,deletepath)
Ejemplo n.º 6
0
def deletebookmark(fullfilename,deletepath=BOOKMARK_PATH):
    logger.info("[favoritos.py] deletebookmark(fullfilename="+fullfilename+",deletepath="+deletepath+")")

    if not usingsamba(deletepath):
        os.remove( os.path.join( urllib.unquote_plus( deletepath ) , urllib.unquote_plus( fullfilename )))
    else:
        fullfilename = fullfilename.replace("\\","/")
        partes = fullfilename.split("/")
        filename = partes[len(partes)-1]
        logger.info("[favoritos.py] filename="+filename)
        logger.info("[favoritos.py] deletepath="+deletepath)
        samba.remove_file(filename,deletepath)