
Sheldhur
25.04.2017
15:43:47
это траблы ФС

Сергей
25.04.2017
15:43:54
Пробуй stats

Dmitry
25.04.2017
15:46:04

Sheldhur
25.04.2017
15:46:07

Google

Sheldhur
25.04.2017
15:46:42
https://nodejs.org/api/fs.html#fs_class_fs_stats
в любом случае затык будет на том месте когда ты попытаешься вытащить файл из этой дирректории
это будет медленно

Dmitry
25.04.2017
15:48:35
Usecase простой - юзер открывает диалог и по доброте душевной выбирает здоровенную папки. Мне от папки нужен только path, ибо дальше я сам.

Сергей
25.04.2017
15:49:16
А fs.stat()?

Dmitry
25.04.2017
15:49:56
А как к нему прикрутить графический интерфейс? Написать свой? Я ж не знаю, чего там юзер тыкает/
Или я тебя не понял?

Sheldhur
25.04.2017
15:50:18

Сергей
25.04.2017
15:50:38

Sergey
25.04.2017
15:50:40
showOpenDialog ему нужен

Сергей
25.04.2017
15:51:06
Вешать лоадер наверное надо

Google

Dmitry
25.04.2017
15:51:52
Это прекрасно, но path-то мне нужно знать все равно)

Sergey
25.04.2017
15:51:54
Он медленный
что там медленного? он же читает все файлы, он только путь возращает

Dmitry
25.04.2017
15:51:57

Sheldhur
25.04.2017
15:52:03

Сергей
25.04.2017
15:52:05

Dmitry
25.04.2017
15:52:35

Sergey
25.04.2017
15:52:59

Сергей
25.04.2017
15:53:11

Sergey
25.04.2017
15:53:21
?

Sheldhur
25.04.2017
15:53:33
точнее не прочитать

Сергей
25.04.2017
15:53:46
Даже список взять не может быстро

Sheldhur
25.04.2017
15:53:53
а вытащить количество их в дирректории
и ты поймешь :)
это даже в доках к ФС есть, что не стоить такое количество файлов в одно директории хранить
даже ls будет медленный

Dmitry
25.04.2017
15:56:05
*представил, как дает почитать доки фс ребятам из Abbyy*

Sheldhur
25.04.2017
15:56:23
ну бля, так и есть
либо хардкодить

Google

Dmitry
25.04.2017
15:56:39
Я не спорю, просто смешно)

Sheldhur
25.04.2017
15:56:50
на js врядли получится, придется отдельный модуль пилить

Сергей
25.04.2017
15:57:01

Sheldhur
25.04.2017
15:58:18
возможность есть, но придется пилить интерфейс диалога и модуль, для работы с ФС

Dmitry
25.04.2017
15:59:39
Обойдутся как-нибудь, думаю.
Спасибо, ребята, что подтвердили мои худшие опасения хд

Sheldhur
25.04.2017
16:00:24
ну погугли ещё по "read big dir"
может есть чё готовое

Таймураз
26.04.2017
08:55:34
Он открывает дефолтный для системы гуй по работе с файлами. Тебе же нужно читать только папки в выбранной директории, а не абсолютно все. Судя по логике, этот ключ передает гую, что нужно выбрать папку => должен fs дергать на предмет директорий.
В поддержку моей логики даже это есть
Note: On Windows and Linux an open dialog can not be both a file selector and a directory selector, so if you set properties to ['openFile', 'openDirectory'] on these platforms, a directory selector will be shown.

Dmitry
26.04.2017
09:10:07
Он и стоит))
Я тоже надеялся не логику
Но нет

Таймураз
26.04.2017
09:11:57
Бей в бубен?

Dmitry
26.04.2017
11:09:38
...заказчику и живи спокойно


Electron.js releases
01.05.2017
23:15:21
electron v1.6.8 beta
https://github.com/electron/electron/releases/tag/v1.6.8
Bug Fixes
Fixed an issue where the default app could render incorrectly depending
on the path Electron was installed into. #9249 (https://github.com/electron/electron/pull/9249)
Fixed an issue where certain built-in window APIs like alert, confirm,
open, history.go, and postMessage would throw errors in the main process
instead of the renderer processes when the arguments were invalid. #9252 (https://github.com/electron/electron/pull/9252)
Fixed an issue where chrome-devtools: URLs would incorrectly override certain window options. #9278 (https://github.com/electron/electron/pull/9278)
Fixed an issue where certain valid frame names passed to window.open would
throw errors in the main process. #9287 (https://github.com/electron/electron/pull/9287)
Fixed a memory leak in windows that have the sandbox option enabled. #9314 (https://github.com/electron/electron/pull/9314)
Fixed a crash when closing a window from within the callback to certain
emitted events. #9113 (https://github.com/electron/electron/pull/9113)
Fixed an issue when using postMessage across windows where the
targetOrigin parameter was not correctly compared against the source
origin. #9301 (https://github.com/electron/electron/pull/9301)
Fixed a debugger crash that would occur parsing certain protocol messages.
#9322 (https://github.com/electron/electron/pull/9322)
Fixed an issue where specifying webPreferences in the features parameter
to window.open would throw an error in the main process. #9289 (https://github.com/electron/electron/pull/9289)
macOS
Fixed an issue where the Error emitted on autoUpdater error events
would be missing the message and stack properties when serialized to JSON
or sent over IPC. #9255 (https://github.com/electron/electron/pull/9255)
API Changes
The module search path used by require is now set to the application root
for non-file: URLs such as about:blank. #9095 (https://github.com/electron/electron/pull/9095)
The javascript option is now disabled in windows opened from a window that
already has it disabled, similar to the nodeIntegration option. #9250 (https://github.com/electron/electron/pull/9250)
macOS
sheet-begin and sheet-end events are now emitted by BrowserWindow
instances when dialog sheets are presented/dismissed. #9108 (https://github.com/electron/electron/pull/9108)
Windows
A session-end event is now emitted by BrowserWindow instances when the
OS session is ending. #9254 (https://github.com/electron/electron/pull/9254)


galiant
04.05.2017
20:35:02
Ребят никто с такой проблемой не сталкивался ? https://discuss.atom.io/t/error-eventemitter-is-not-defined-in-loaded-external-site/42411
вк нельзя прикрепить к посту ничего если окрыть через електрон сайт vk

Google

Сергей
04.05.2017
20:35:53
забавно
не видел
только в вк?

galiant
04.05.2017
20:37:01
другие сайты особо не юзал...
разобрался.... если хотите что бы внешние сайта работали как в браузере (без глюков) нужно отключать интеграцию с nodejs в параметрах к WindowBroser

Paruyr
05.05.2017
08:09:10
Это не сломает require и electron.remote?

Сергей
05.05.2017
08:09:44
сломает

Юрий
05.05.2017
08:21:42

galiant
05.05.2017
11:57:52

Сергей
05.05.2017
12:00:24
ребята запилили чатик по гиту без рекламы от prodot
@git_ru

Nikita
05.05.2017
14:08:31
а кто-то занимался миграцией локалстораджа в приложениях на электроне?
если с домена на домен переехали, например?

Сергей
05.05.2017
14:45:02
а как связан домен и локалсторадж?

Vladimir
05.05.2017
14:45:24

Сергей
05.05.2017
14:45:37
если сидишь в электроне
какая разница

Vladimir
05.05.2017
14:45:55
Аааа, точно

Storm
05.05.2017
14:45:55
если рендрить сайт в окне электрона))

Сергей
05.05.2017
14:48:17

Felix
05.05.2017
14:48:45
зачем
считай десктопное приложение сделал!

Google

Сергей
05.05.2017
14:48:55
хах)))

Storm
05.05.2017
14:48:56

Сергей
05.05.2017
14:49:14
?

Nikita
05.05.2017
14:51:49
эм, как связан - очень просто, если меняешь домен, localStorage хранится в другом файле