Skip to content
Snippets Groups Projects
  • Joas Schilling's avatar
    a4ba2113
    Fix getById for files in appdata and the root mount · a4ba2113
    Joas Schilling authored
    
    In case the path we are currently in is inside the appdata_* folder,
    the original getById method does not work, because it can only look inside
    the user's mount points. But the user has no mount point for the root storage.
    
    So in that case we directly check the mount of the root if it contains
    the id. If it does we check if the path is inside the path we are working
    in.
    
    Signed-off-by: default avatarJoas Schilling <coding@schilljs.com>
    a4ba2113
    History
    Fix getById for files in appdata and the root mount
    Joas Schilling authored
    
    In case the path we are currently in is inside the appdata_* folder,
    the original getById method does not work, because it can only look inside
    the user's mount points. But the user has no mount point for the root storage.
    
    So in that case we directly check the mount of the root if it contains
    the id. If it does we check if the path is inside the path we are working
    in.
    
    Signed-off-by: default avatarJoas Schilling <coding@schilljs.com>