Changes between Version 1 and Version 2 of Ticket #34341, comment 1


Ignore:
Timestamp:
Feb 15, 2023, 1:44:27 PM (22 months ago)
Author:
Mohamed Nabil Rady

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34341, comment 1

    v1 v2  
    33{{{
    44if prefix:
    5             if os.path.commonpath([path, prefix]) == '':
     5            if not os.path.commonpath([path, prefix]):
    66                return None
    77            path = os.path.relpath(path, prefix)
Back to Top