Replies: 1 comment
-
If anyone is looking for a solution. Here's one: import os
# Set the path of the existing directory you want to link to
existing_dir = r'C:\Users\Rafay\repos\image-search'
# Set the path of the new directory junction you want to create
junction_dir = r'C:\Users\Rafay\repos\image-search\data\folders\link'
# Use the os.symlink function to create the directory junction
os.symlink(existing_dir, junction_dir, target_is_directory=True) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there. I'm building an application and I need to create shortcuts (references) to folders that the user will add and have it explorable from a TreeView inside the application. But when creating a normal shortcut from within windows, it doesn't open the contents of the folder. But when I give the reference to my scoop folder and open the current folder of any app, it opens its contents.
I would really appreciate if someone could explain how this system in scoop works. Thank you :)
P.S I'm using PyQt6 for the application and QTreeView() and QFileSystemModel() to display a tree view like windows explorer.
Beta Was this translation helpful? Give feedback.
All reactions