diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 73646db2a2..186ca5e8c3 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -878,9 +878,9 @@ public final class FilePath implements Serializable { return n.substring(0,idx); } /** - * Gets just the file name portion. + * Gets just the file name portion without directories. * - * This method assumes that the file name is the same between local and remote. + * For example, "foo.txt" for "../abc/foo.txt" */ public String getName() { String r = remote;