Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Get Count only in Python API?

Thu Dec 23, 2021 11:12 am

Hello,
I want to know how many files I have in the router
so I want to run
:put [file print count-only ]
but how do I do it in python - "routeros_api"?
 replay = api.get_resource('/file/')
I don't want it to read all the file and names - just the final number

Thanks,

Who is online

Users browsing this forum: Google [Bot], quanbau and 16 guests