STINNER Victor added the comment: > total, free = nt._getdiskusage(path) > NotADirectoryError: [WinError 267] The directory name is invalid
The underlying C function is GetDiskFreeSpaceEx(): https://msdn.microsoft.com/fr-fr/library/windows/desktop/aa364937%28v=vs.85%29.aspx It takes a lpDirectoryName parameter: "A directory on the disk." Is psuugxik1s0รจ a directory? It looks more like a shutil.disk_usage() documentation issue than an Unicode issue. ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26330> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com