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.