Checking for write access in a directory before creating files inside it

后端 未结 4 2090
长情又很酷
长情又很酷 2020-12-16 09:49

My small utility application asks the user for an output directory via a GUI file selector. Then it creates a lot of files in this output directory after some processing.

4条回答
  •  被撕碎了的回忆
    2020-12-16 10:45

    you can use FilePermission to get the details . I find one way where you need to implement SecurityManager the code is here and here

提交回复
热议问题