File is copied on the FTP server not moved in java
===

Using below program i am able to upload zip file on ftp server.
But it makes the copy of the zip file and upload the file on ftp server.
I want it should delete the file from local system and copy it to server i.e. it should move the file not copy.Please guide
    

    public class UploadFile {
        	public static void main(String args[])
        	{      
        		FTPClient ftp=new FTPClient();
        		try {          
        			int reply;  
                 
        			ftp.connect("ipadddress"); 
        		
        			ftp.login("abc", "abc"); 
    
        			reply = ftp.getReplyCode();
        			System.out.println("reply1" + reply);
        			if(!FTPReply.isPositiveCompletion(reply)) 
        			{             
        				ftp.disconnect();                  
        			}           
        			System.out.println("FTP server connected."); 
        			ftp.setFileType(FTP.BINARY_FILE_TYPE);
        			InputStream input= new FileInputStream("D:\\testencrypted.zip");
        			String dirTree="/Vel";
        			boolean dirExists = true;
        			String[] directories = dirTree.split("/");
        			for (String dir : directories )
        			{
        				if (!dir.isEmpty() )
        				{
        					if (dirExists)
        					{
        						dirExists = ftp.changeWorkingDirectory(dir);
        					}
        					else if (!dirExists)
        					{
        						
        						System.out.println("dir tree" + ftp.printWorkingDirectory());
        						
        						
        						if (!ftp.makeDirectory(dir))
        						{
        							
        							throw new IOException("Unable to create remote directory '" + dir + "'.  error='" + ftp.getReplyString()+"'");
        							}
        						if (!ftp.changeWorkingDirectory(dir))
        						{
        							
        							throw new IOException("Unable to change into newly created remote directory '" + dir + "'.  error='" + ftp.getReplyString()+"'");
        						}
        						System.out.println("dir tree" + ftp.printWorkingDirectory());
        			
        					}
        					
        					}
        				}      
        			
        			ftp.storeFile(dirTree+"/t1.zip",input);
        			input.close();
        			ftp.logout();        
        			} 
        		catch(Exception e) 
        			{                      
        			System.out.println("err"+ e);             
        			}
        		finally 
        		{
        			if(ftp.isConnected())
        			{
        				try
        				{ 
        					ftp.disconnect();
        					
        				}
        				catch(Exception ioe)
        				{
        					
        				}
        				
        			}
        			
        		}
        		} 
        }

