Subversion Repository Public Repository

litesoft

Diff Revisions 71 vs 72 for /trunk/Java/core/Server/src/org/litesoft/util/FileAdder.java

Diff revisions: vs.
  @@ -17,35 +17,36 @@
17 17 * Move Dir - Assume same volume!
18 18 */
19 19 @Override
20 - protected void moveDir( File pSource, File pDestination )
20 + protected boolean moveDir( File pSource, File pDestination )
21 21 {
22 - // No Moving
22 + return false; // No Moving
23 23 }
24 24
25 25 /**
26 26 * Move File - Assume same volume!
27 27 */
28 28 @Override
29 - protected void moveFile( File pSource, File pDestination )
29 + protected boolean moveFile( File pSource, File pDestination )
30 30 {
31 - // No Moving
31 + return false; // No Moving
32 32 }
33 33
34 34 /**
35 35 * Update the existing pDestination from the pSource - Assume NOT the same volume!
36 36 */
37 37 @Override
38 - protected void updateFile( File pSource, File pDestination )
38 + protected boolean updateFile( File pSource, File pDestination )
39 39 {
40 - // No Updating
40 + return false; // No Updating
41 41 }
42 42
43 43 /**
44 44 * Copy the pSource to the pDestination - Assume NOT the same volume!
45 45 */
46 46 @Override
47 - protected void copyAddFile( File pSource, File pDestination )
47 + protected boolean copyAddFile( File pSource, File pDestination )
48 48 {
49 49 FileUtils.storeTextFile( pDestination, FileUtils.loadTextFile( pSource ) );
50 + return true;
50 51 }
51 52 }