Loading src/com/owncloud/android/lib/resources/files/model/SynchronizableFileInfo.java +31 −22 Original line number Diff line number Diff line Loading @@ -85,14 +85,22 @@ public class SynchronizableFileInfo implements ISynchronizableContent { Log.e(TAG, "Exception while getting digest", e); return null; } if(!file.exists()){ return null; } InputStream is; if(file.isFile()) { try { is = new FileInputStream(file); } catch (FileNotFoundException e) { Log.e(TAG, "Exception while getting FileInputStream", e); return null; } /*else { //TODO gérer le hash d'un dossier! }*/ byte[] buffer = new byte[8192]; int read; try { Loading @@ -113,5 +121,6 @@ public class SynchronizableFileInfo implements ISynchronizableContent { Log.e(TAG, "Exception on closing MD5 input stream", e); } } }return null; } } Loading
src/com/owncloud/android/lib/resources/files/model/SynchronizableFileInfo.java +31 −22 Original line number Diff line number Diff line Loading @@ -85,14 +85,22 @@ public class SynchronizableFileInfo implements ISynchronizableContent { Log.e(TAG, "Exception while getting digest", e); return null; } if(!file.exists()){ return null; } InputStream is; if(file.isFile()) { try { is = new FileInputStream(file); } catch (FileNotFoundException e) { Log.e(TAG, "Exception while getting FileInputStream", e); return null; } /*else { //TODO gérer le hash d'un dossier! }*/ byte[] buffer = new byte[8192]; int read; try { Loading @@ -113,5 +121,6 @@ public class SynchronizableFileInfo implements ISynchronizableContent { Log.e(TAG, "Exception on closing MD5 input stream", e); } } }return null; } }