Hi, I have a bit of code that looks like this
def source_folder_name = "${pwd()}/${destination}" def source_folder = new File(source_folder_name) if (!source_folder.exists()) { echo "Source folder ${source_folder_name} does not exist" } else { echo "Deleting folder ${source_folder_name}" source_folder.deleteDir() } Now on Linux (on the master) it works fine. On Windows (on a slave) it insists the folder does not exist, even though it does. The folder is on the local machine in both cases. I have tried replacing all forward slashes in the path with backslashes, and vice-versa but it doesn't seem to make any difference. Am I missing something? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5c872088-0e5d-4dd3-ab9f-885658813778%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.