Find Jobs
Hire Freelancers

Java file class

$30-100 USD

Completed
Posted almost 15 years ago

$30-100 USD

Paid on delivery
I am looking for someone to write a java class that can perform some basic file operations.? The code will be used as part of a web application running on Linux.? Below is an outline of what I want.? Please not that I am not suggesting that this is an exact prototype of what the classes should look like, but it is provided just to give you an idea of what I want.? Further some of the language used below is used in a very loose sense.? For instance I said list sever times.? I don’t mean to imply a list has to be or should be used, many of them with probably work better with a standard array.? Please note you are writing a class than will be called from a java application you need not write any user interface or anything like that.? Your code should, naturally, be well written and should handle exceptions rather than crashing.? If you have any other questions please let me know.? ? ## Deliverables **/ ? * Takes two lists of file names, an old list and a new list.? For each file name in the old ? * list there will be one in the new list.? The file names may be appended with paths. ? * The method will move each file named in the old list to the name and path in the ? * corresponded new list.? The file names could also be directories.? The method returns ? * the number of files moved. ? */ public static int move(String [] listOfFilesOld, String [] listOfFilesNew) ? **/ ? * Takes a two directory names.? Moves all the diles in the old directory to the new ? * directory.? Returns the number of files moved. ? */ public static int moveAll(String oldDirectory, String newDirectory) ? **/ ? * Takes two lists of file names, an old list and a new list.? For each file name in the old ? * list there will be one in the new list.? The file names may be appended with paths. ? * The method will copy each file named in the old list to the name and path in the ? * corresponded new list.? The file names could also be directories? The method returns ? * the number of files copied. ? */ public static int copy(String [] listOfFilesOld, String [] listOfFilesNew) ? **/ ? * Takes a two directory names.? Copies all files in the old directory to the new ? * directory.? Returns the number of files copied. ? */ public static int copyAll(String oldDirectory, String newDirectory) ? **/ ? * Takes a list of file names which may include paths and deletes all those files.? Returns ? * the number of files deleted ? */ public static int delete(String [] toDelete) ? **/ ? * Takes a directory name and deletes all the files in the directory.? Returns the number of ? * files deleted ? */ public static int deleteAll(String directoryToDelete) ? **/. ? ? * Returns a list of all the files within a directory.? Does not search more than one ? * directory deep) ? */ public static String [] list (String directory) ? **/ ? * Returns true if the file exists at the path ? */ public static Boolean exists(String file) ? **/ ? * Returns the size of a file ? */ public static int size(String file) ? ? **/ ? * Returns the date a file was created ? */ public static int dateCreated(String file) ? **/ ? * Returns the date a file was last modified ? */ public static int dateModified(String file) ? **/ ? * Returns the date a file was last accessed ? */ public static int dateAccessed(String file) //There should also be a class for creating directories * * *This broadcast message was sent to all bidders on Monday Jul 27, 2009 4:51:31 PM: I got a message from a couple of coders that it was not letting you bid less than $100. I am guessing that was due to the type of project I selected. I have edited the project type so you should be able to put in a lower bid now if you so desire. If you still have problems let me know and I will figure it out or contact RAC.
Project ID: 2814541

About the project

30 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$7 USD in 14 days
5.0 (2 reviews)
0.9
0.9
30 freelancers are bidding on average $57 USD for this job
User Avatar
See private message.
$85 USD in 14 days
4.8 (262 reviews)
7.3
7.3
User Avatar
See private message.
$68 USD in 14 days
4.9 (424 reviews)
7.4
7.4
User Avatar
See private message.
$73.95 USD in 14 days
5.0 (250 reviews)
6.8
6.8
User Avatar
See private message.
$42.50 USD in 14 days
4.9 (65 reviews)
6.0
6.0
User Avatar
See private message.
$85 USD in 14 days
5.0 (91 reviews)
5.9
5.9
User Avatar
See private message.
$51 USD in 14 days
5.0 (16 reviews)
5.1
5.1
User Avatar
See private message.
$85 USD in 14 days
5.0 (63 reviews)
5.1
5.1
User Avatar
See private message.
$51 USD in 14 days
4.9 (19 reviews)
4.7
4.7
User Avatar
See private message.
$85 USD in 14 days
4.5 (72 reviews)
5.3
5.3
User Avatar
See private message.
$84.15 USD in 14 days
4.7 (42 reviews)
4.7
4.7
User Avatar
See private message.
$34 USD in 14 days
4.9 (20 reviews)
4.6
4.6
User Avatar
See private message.
$85 USD in 14 days
4.6 (57 reviews)
4.9
4.9
User Avatar
See private message.
$63.75 USD in 14 days
5.0 (9 reviews)
4.1
4.1
User Avatar
See private message.
$63.75 USD in 14 days
4.5 (31 reviews)
4.4
4.4
User Avatar
See private message.
$34 USD in 14 days
4.6 (37 reviews)
4.2
4.2
User Avatar
See private message.
$46.75 USD in 14 days
3.5 (16 reviews)
4.9
4.9
User Avatar
See private message.
$76.50 USD in 14 days
4.8 (6 reviews)
3.3
3.3
User Avatar
See private message.
$42.50 USD in 14 days
4.9 (11 reviews)
3.0
3.0
User Avatar
See private message.
$76.50 USD in 14 days
5.0 (2 reviews)
2.8
2.8
User Avatar
See private message.
$51 USD in 14 days
5.0 (3 reviews)
2.5
2.5

About the client

Flag of UNITED STATES
Chicago, United States
5.0
9
Member since Sep 30, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.