Return the long path form for ``path``. :raise: :class:`~windows.winproxy.WinproxyError` if ``path`` does not exists :param path: a valid Windows path :type path: :class:`str` | :obj:`unicode` :returns: :class:`str` | :obj:`unicode` -- same type as ``path`` parameter
(path)
| 488 | |
| 489 | |
| 490 | def get_long_path(path): |
| 491 | """Return the long path form for ``path``. |
| 492 | |
| 493 | :raise: :class:`~windows.winproxy.WinproxyError` if ``path`` does not exists |
| 494 | :param path: a valid Windows path |
| 495 | :type path: :class:`str` | :obj:`unicode` |
| 496 | :returns: :class:`str` | :obj:`unicode` -- same type as ``path`` parameter |
| 497 | """ |
| 498 | size = 0x1000 |
| 499 | buffer = ctypes.create_unicode_buffer(size) |
| 500 | rsize = winproxy.GetLongPathNameW(path, buffer, size) |
| 501 | return buffer[:rsize] |
| 502 | |
| 503 | |
| 504 | def get_short_path(path): |
nothing calls this directly
no outgoing calls
no test coverage detected