Thread: How to get my cache to download to the correct directory!

Results 1 to 3 of 3
  1. #1 How to get my cache to download to the correct directory! 
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    So my autocache downloader works, i just think its downloading it to the wrong directory, because when i run my server, itll say error connecting to server... any suggestions?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Post your cachedownloader and signlink
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jan 2013
    Posts
    94
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Code:
    	 /**
         * Gets the cache location from the home drive.
         * if the directory exists, we proceed with loading the client
         * else, we create the directory then return to try again.
         */
        public static final String findcachedir() {
            /** The location of the cache */
            final String location = String.format("%s/%s/", System.getProperty("user.home"), "ProjectOS");
            final File cacheDirectory = new File(location);
            /** does the directory exist? */
            if (cacheDirectory.exists()) {
                /** it does exist, return the cache location */
                return location;
                /** The directory didn't exist */
            } else {
                /** create the cache directory */
                cacheDirectory.mkdir();
            }
            /** after we do that, we return the cache directory being that it has been created. */
            return location;
        }
    Change ProjectOS To the name of your server. This will download to your users home drive (Better than C:/)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Cache 2 Directory (req)
    By program 2 in forum Requests
    Replies: 1
    Last Post: 12-12-2010, 07:57 PM
  2. cache directory
    By stickywicky in forum Help
    Replies: 2
    Last Post: 12-01-2010, 12:04 AM
  3. Cache Directory Problem
    By Proffessor Oak in forum Help
    Replies: 0
    Last Post: 08-30-2010, 03:45 AM
  4. Webclient Cache Directory
    By edgevillepkz in forum Help
    Replies: 0
    Last Post: 08-08-2010, 11:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •