История изменений
Исправление
WitcherGeralt,
(текущая версия)
:
On Windows, files don’t have modes. It doesn’t have stat, lstat, fstat syscalls - it has a FindFirstFile family of functions (alternatively, CreateFile to open, then GetFileAttributes, alternatively, GetFileInformationByHandle), which takes a pointer to a WIN32_FIND_DATA structure, which contains file attributes.
So, what happens if you run that program on Windows?
go run main.go C:\Windows\notepad.exe (C:\Windows\notepad.exe) mode = 666
It makes up a mode.
Какой-то вендопетух бомбит по-поводу юниксовости Go. Зачем ты это сюда притащил?
P.S. Поддержку винды пилили левые чуваки, а Пайк и Томсон даже и не думали.
Исходная версия
WitcherGeralt,
:
On Windows, files don’t have modes. It doesn’t have stat, lstat, fstat syscalls - it has a FindFirstFile family of functions (alternatively, CreateFile to open, then GetFileAttributes, alternatively, GetFileInformationByHandle), which takes a pointer to a WIN32_FIND_DATA structure, which contains file attributes.
So, what happens if you run that program on Windows?
go run main.go C:\Windows\notepad.exe (C:\Windows\notepad.exe) mode = 666
It makes up a mode.
Какой-то ведопетух бомбит по-поводу юниксовости Go. Зачем ты это сюда притащил?
P.S. Поддержку винды пилили левые чуваки, а Пайк и Томсон даже и не думали.