Ignore:
Timestamp:
2004-06-23T14:35:58+12:00 (20 years ago)
Author:
mdewsnip
Message:

Some function and variable name changes, and added the web cache/downloaded files mapping back in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileSystem.java

    r7112 r7633  
    77import org.greenstone.gatherer.file.FileNode;
    88import org.greenstone.gatherer.util.ArrayTools;
     9import org.greenstone.gatherer.util.Utility;
    910
    1011
    1112public class FileSystem
    1213{
    13     static public FileNode getLocalFileSystem(FileSystemModel model)
    14     // static public FileNode getLocalFileSystem()
     14    static public FileNode getLocalFilespaceNode(FileSystemModel model)
    1515    {
    1616    FileNode file_system_root = null;
     
    4646
    4747
    48     static public FileNode getUserHomeMapping()
     48    static public FileNode getHomeFolderNode()
    4949    {
    5050    // Get the name of the OS we're running on
     
    6969    // Generate a special mapping to the user home folder
    7070    File home_folder = new File(home_folder_str);
    71     String[] args = new String[1];
    72     args[0] = home_folder.getName();
    73     return new FileNode(home_folder, Dictionary.get("Tree.Home", args));
     71    return new FileNode(home_folder, Dictionary.get("Tree.Home", home_folder.getName()));
     72    }
     73
     74
     75    static public FileNode getDownloadedFilesNode()
     76    {
     77    return new FileNode(Utility.getCacheDir(), "Downloaded Files");
    7478    }
    7579}
Note: See TracChangeset for help on using the changeset viewer.