Hello Everyone!
In this code I want to split folder on user’s pc who are using my app but when my user runs my anvil app the spitted dataset saves on my computer instead of their . So how we can resolve this issue?
MY ANVIL CODE:
def file_loader_1_change(self, file, **event_args):
"""This method is called when a new file is loaded into this FileLoader"""
anvil.server.call("unzip", self.file_loader.file)
n = Notification("YOUR DATASET ARE EXTRACTED!", timeout=None)
n.show()
###############################################################################
def btn_split_click(self, **event_args):
n = Notification("PLEASE WAIT!", timeout=None)
n.show()
#m= None
results = anvil.server.call('split',
self.text_box_2.text, 
self.text_box_1.text,
self.text_box_02.text,
self.text_box_03.text,
self.text_box_04.text)
n.hide()
n = Notification("YOUR DATASET ARE SPLITTED!", timeout=None)
n.show()
PYTHON CODE :