This content has been marked as final.
Show 1 reply
-
1. Re: getting folder path
gaborj Apr 1, 2010 5:04 PM (in response to bilgetonyukuk9)Hi,
Should work. If you have the appropriate permissions you can even do sg. like:
... srcDirF = new File(srcDir); if(!srcDirF.isDirectory()){ log.error("InvalidConfigValue, srcDir: #0", srcDir); throw new InvalidConfigValueException("Invalid srcDir"); } ...
then e.g. use operations from java.io to create, move, delete... files
However! in Java EE environment it is usually not safe to simply reference libraries of your underlying system, i.e. outside of your application context. For this you could better use a CMS, e.g. apache jackrabbit...