home directory not correct #15

Closed
opened 2024-08-10 01:11:01 -05:00 by jblu · 2 comments
Owner

if a transaction goes to a subfolder the virtual folder will return the incorrect home folder

if a transaction goes to a subfolder the virtual folder will return the incorrect home folder
jblu added this to the Inex project 2024-08-10 02:25:37 -05:00
Author
Owner

maybe split based on / and select the first two items and build the string back?

maybe split based on / and select the first two items and build the string back?
Author
Owner

Created function that addressed this issue

    if user:
        userSplit = f'/{user}/'
    if virtualfolder:
        if userSplit in virtualfolder:
            home = virtualfolder.split(userSplit)[0] + userSplit
            return home if home else None```
Created function that addressed this issue ```def parseHomefolder(user, virtualfolder): if user: userSplit = f'/{user}/' if virtualfolder: if userSplit in virtualfolder: home = virtualfolder.split(userSplit)[0] + userSplit return home if home else None```
jblu closed this issue 2024-08-26 13:51:44 -05:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jblu/Inex#15
No description provided.