import os
import shutil
def main():
p = os.path.abspath(os.getcwd())
path = p+"/"
files = os.listdir(path)
for file in files:
path_to_file = path+file
type_of_file = file.split(".")
path_to_dir = path+type_of_file[1]
print(file, "-- type -- ",type_of_file[1])
try:
try:
os.makedirs(type_of_file[1])
shutil.move(path_to_file, path_to_dir)
print(f"--{file}-- in {path_to_dir}")
except:
pass
except:
print(type_of_file[1]," already exists")
pass
if __name__ == "__main__":
main()
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
MustaphaBen
@MustaphaBen
Hello, my name is mustapha i live in algeria . I'm using pythonista for 1year and i think i can do something with it, but in this omz:software website i found that i can do more . When i saw all these guys in this website and all their projects i started learning more about pythonista and i hope i can meet good guys and make collaborations.
Latest posts made by MustaphaBen
-
A simple file-automation desk clean up.
-
RE: a simple terminal emulator
First : split screen And multitasking trust me those things are not the best in ios 10.3.3 and there is no split screen so if i wanna watch a turorial i need to go to youtube and then to pythonista.
Sec : the version its old now I can't even install youtube lol.
Third : my ipad its old so I can't even update it.Thats why i wanted to do the jbk cuz i can use all these features without cost
-
RE: a simple terminal emulator
I think jb's progrmmers are creative more than apple's programmers
-
RE: a simple terminal emulator
I agree, but ios have some limitations i have an ipad 4 ios 10.3.3 and trust me it sucks its old and so limited
-
RE: a simple terminal emulator
Thanks but i cant anymore i broke my ipad, i did the jbk and i installed a bad tweak and it deleted all the stock apps, but ill do that for sure when i fix my ipad
-
RE: i wanna make a project. But i dnt know whr to start
not a game , something like a cli or a tool
-
RE: install react on pythonista?
but the app play.js can install reac
so its not even possible to install it on pythonista
And like when you install it you can see you're output on a localhost or something? -
install react on pythonista?
hey is it possible to install react using pythonista
-
i wanna make a project. But i dnt know whr to start
hey. i need some ideas to make ? can someone give me some 💡
i need to build something from scratch but i dnt know whr to start i dnt have perfect ideas
so it will be helpful if you give me some cool ideas 💡