|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
| How to manually change the local cache path (without deleting data already in it?) |
|
Nebilar
|
| Post subject: How to manually change the local cache path (without deleting data already in it?) |
Post rating: 0
|
Posted: Thu 20 Feb, 2020, 17:30
|
|
User rating: 0
Joined: Mon 29 May, 2017, 17:19 Posts: 21 Location: Germany,
|
|
I have downloaded tickdata from dukascopy and want to access it from within the jforex api. The only way I know how to do this would be with IClients setCacheDirectory().
The problem is that once I set the directory to my directory containing the tick data, all data was deleted. How can I prevent jforex from deleting all my downloaded dukascopy tick data? And still use it with jforex?
Thanks
|
|
|
|
|
 |
|
vadim_berezhnoj
|
| Post subject: Re: How to manually change the local cache path (without deleting data already in it?) |
Post rating: 0
|
Posted: Fri 28 Feb, 2020, 11:48
|
|
| Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
|
Hello.
IClient interface:
/** * Sets the location of the cache files. Default is <code>System.getProperty("java.io.tmpdir") + "/.cache"</code> * <p> The method should get called <u>before</u> the call of {@link #connect(String, String, String)}. * <p>WARNING: JForex might delete all folder's content if folder already existed AND was not created by this method call. * * @param cacheDirectory directory where cache files should be saved */ void setCacheDirectory(File cacheDirectory);
Looks like expected behavior - cache folder must be filled by JForex classes, which are really know necessary folders structure and files format.
Kind regards, Support Team.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|