0
\$\begingroup\$

How can I create a folder on Android device, download from ftp-server video and save it there?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

You can create directory in andriod

using System.IO.Directory.CreateDirectory(path)

string path = "/storage/emulated/0/MyFolder";

 if(!Directory.Exists(path))
      Directory.CreateDirectory(path);

and you can download any resource form the web using WWW.

\$\endgroup\$
4
  • \$\begingroup\$ Will it work on Android? \$\endgroup\$ Commented Dec 6, 2017 at 12:31
  • \$\begingroup\$ yes try it first separately and let me know. \$\endgroup\$ Commented Dec 6, 2017 at 12:32
  • \$\begingroup\$ Would this be a case where you want to use Application.persistentDataPath to help keep your app's saved files organized in a consistent spot? \$\endgroup\$
    – DMGregory
    Commented Dec 6, 2017 at 12:38
  • \$\begingroup\$ @DMGregory Sorry docs.unity3d.com/ScriptReference/… is much better choice. \$\endgroup\$ Commented Dec 6, 2017 at 12:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .