How to refresh/reload a directory where a txt file is inside

zmike

Client
Регистрация
24.10.2019
Сообщения
142
Благодарностей
8
Баллы
18
Dear fellow zp users,

I have a project that use a cloud file directory.
Sometimes the file has been uploaded there but ZP won't file the file unless I manually to into the folder and hit refresh folder.
Is there any c# or any built in code that I can use, to refresh a given directory in windows system?

Thanks in advance!
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 588
Благодарностей
5 952
Баллы
113
Please tell what action do you use in ZennoPoster to work with the file (or directory).
 

zmike

Client
Регистрация
24.10.2019
Сообщения
142
Благодарностей
8
Баллы
18
I let ZennoPoster to read a txt file from the directory.
It will read the content and save it into a variable.
Since this directory is a cloud based directory, some files are not synced real time unless I right click, and click refresh.
So my open question is that whether it is possible to let ZennoPoster trigger a refresh/reload of a directory/folder.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 588
Благодарностей
5 952
Баллы
113
I let ZennoPoster to read a txt file from the directory.
It will read the content and save it into a variable.
Since this directory is a cloud based directory, some files are not synced real time unless I right click, and click refresh.
So my open question is that whether it is possible to let ZennoPoster trigger a refresh/reload of a directory/folder.
Do you open this cloud directory in browser or use the action Data>Files?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 588
Благодарностей
5 952
Баллы
113

zmike

Client
Регистрация
24.10.2019
Сообщения
142
Благодарностей
8
Баллы
18
I go to the disk, like Z:
Then open that folder like: Data>Files
Then inside that folder, I right click, and do refresh
131704
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 588
Благодарностей
5 952
Баллы
113
I think you should use the action Data>Directory>Get list of files to find new files in the directory.
 

zmike

Client
Регистрация
24.10.2019
Сообщения
142
Благодарностей
8
Баллы
18

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)