public static File findInstanceDirectoryOnAgent ( Instance instance ) { String path = InstanceHelpers . computeInstancePath ( instance ) ; path = path . substring ( 1 ) . replace ( ' ' , ' ' ) . replace ( ' ' , ' ' ) ; String installerName = ComponentHelpers . findComponentInstaller ( instance . getComponent ( ) ) ; return new File ( Constants . WORK_DIRECTORY_AGENT , installerName + "/" + path ) ; }
Finds the directory where an agent stores the files for a given instance .