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)
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)