public class DOWNLOADING { public void DOWNLOADING(String FROM, String WHERE) { try { Sardine SARDINE = SardineFactory.begin("login", "password"); InputStream IS = SARDINE.get("https://webdav.yandex.ru" + "/" + FROM); File FILE = new File(WHERE); OutputStream OS = new FileOutputStream(FILE); byte[] BUFFER = new byte[8 * 1024]; int BR; while((BR = IS.read(BUFFER)) != -1) { OS.write(BUFFER, 0, BR); } IS.close(); OS.close(); out.print("\n Skachano\n"); } catch(FileNotFoundException E) { out.print("\n Oshibka\n"); } catch(IOException E) { out.print("\n Oshibka\n"); } } } DOWNLOADING.DOWNLOADING("Путь\Файл.zip", "Путь" + "Файл.zip"); In the above code, I download the archive. It is necessary that when downloading (further extraction) the user did not see the archive. I initially tried to set the "hidden" property to the archive, but when downloading to Yandex.Disk and downloading, I don’t know at what stage but the property is not saved. How to make so that the archive would keep the property "hidden" or how to set it when downloading?
For example, the file will download a few minutes and will be visible at the time of downloading and installation. From this you need to somehow get rid of. You can of course shove him far away, but I would just like to hide it as after removing it is removed and no one needs to see it.