Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

    • Academy Rocketbot
    • Tutorials
    • Documentación
Search
Ask A Question

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 1324
Next
Answered

Rocketbot Forum Latest Questions

AlbertoCesar
  • 0
  • 0
AlbertoCesar
Asked: January 6, 20212021-01-06T20:56:02+00:00 2021-01-06T20:56:02+00:00In: Comandos

Comprobar si existe archivo con extension XML

  • 0
  • 0

Hola, soy nuevo en esta plataforma y tengo el problema de comprobar si existe un archivo XML dentro de una carpeta. No importa el nombre del archivo, solo la extension.

Gracias de antemano por su ayuda.

EDIT:

Gracias Stephen por el apoyo, sin embargo no he podido solucionar el problema, la variable flag se queda vacia y cuando tampoco funciona en un if. Ayuda por favor.

Gracias nuevamente por los comentarios.

archivoscomprobar si existen archivosxml
2
  • 2 2 Answers
  • 6k Views
  • 0 Followers
  • 0
Share
  • Facebook

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. A16
      Best Answer
      A16
      2021-01-06T21:07:18+00:00Added an answer on January 6, 2021 at 9:07 pm

      Hola AlbertoCesar

      Puedes usar el módulo files https://market.rocketbot.co/?36#/module/Files
      y listar los archivos, luego con asignar variable o un if colocar

      any([element.endswith(«xml») for element in {variable_con_archivos}])

        • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • alexanderpaz
        alexanderpaz
        2021-02-25T19:23:38+00:00Replied to answer on February 25, 2021 at 7:23 pm

        Hola Stephen Byerley ,

        Hay forma de usar el modulo, pero pasando las rutas de las carpetas o archivos en Variables? o solo funciona con la ruta quemada.. ejemplo: C:\File

          • 0
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 6k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answers: 0

      No maximiza ventana al menos como se espera

      • Answers: 0

      Compatiblidad BOTS

      • Answers: 0

      Obtener URL actual PDF en nueva pestaña

      • Answers: 0

      Obtener URL actual PDF en nueva pestaña

      • Answers: 3

      Problema con typing_extensions al usar EasyOCR en RocketBot

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.

        Notifications