FileItem

FileItem

(namespace Do.Universe)

FileItem is an item describing a file. FileItem subclasses can be created and registered with FileItem for instantiation in the factory method FileItem.Create.

public static string ShortPath (string path)

  • Abbreviates an absolute path by replacing $HOME with ~.

    param: string containing a path.

    returns: containing the abbreviated path.

  • ---

public static bool IsExecutable (IFileItem fi)

public static bool IsExecutable (string path)

public static bool IsHidden (IFileItem fi)

public static bool IsHidden (string path)

public static bool IsDirectory (IFileItem fi)

public static bool IsDirectory (string path)


public FileItem (string path)

  • Create a new FileItem for a given file.

    Param: containing an absolute path to a file.

  • ---

public virtual string Name

  • Characters like :, <, >, ], [, .... are not supproted as Name.

public virtual string Description

  • Characters like :, <, >, ], [, .... are not supproted as Description.

public virtual string Icon

public string Path

public string URI

public string MimeType

public virtual void Open ()

FileItem (last edited 2008-08-06 16:20:15 by localhost)