Package hudson.model

Class DirectoryBrowserSupport.Path

java.lang.Object
hudson.model.DirectoryBrowserSupport.Path
All Implemented Interfaces:
Serializable
Enclosing class:
DirectoryBrowserSupport

public static final class DirectoryBrowserSupport.Path extends Object implements Serializable
Represents information about one file or folder.
See Also:
  • Constructor Details

  • Method Details

    • isFolder

      public boolean isFolder()
    • isReadable

      public boolean isReadable()
    • getHref

      public String getHref()
    • getTitle

      public String getTitle()
    • getIconName

      public String getIconName()
    • getIconClassName

      public String getIconClassName()
    • getSize

      public long getSize()
    • getLastModified

      public long getLastModified()
      Returns:
      A long value representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or 0L if is not possible to obtain the times.
      Since:
      2.127
    • getLastModifiedAsCalendar

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Calendar getLastModifiedAsCalendar()
      Returns:
      A Calendar representing the time the file was last modified, it lastModified is 0L it will return 00:00:00 GMT, January 1, 1970.
      Since:
      2.127
    • createNotReadableVersionOf

      public static DirectoryBrowserSupport.Path createNotReadableVersionOf(DirectoryBrowserSupport.Path that)