mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
11 lines
263 B
Python
11 lines
263 B
Python
|
|
def unique_directories(paths):
|
|
result = []
|
|
for path in paths:
|
|
index = path.rfind("/")
|
|
if index != -1:
|
|
directory = path[:index]
|
|
if not directory in result:
|
|
result.append(directory)
|
|
return result
|