Searched refs:newFilePath (Results 1 – 2 of 2) sorted by relevance
313 final String newFilePath = getFilePath(uri); in copyAttachment() local326 outputStream = new FileOutputStream(newFilePath); in copyAttachment()328 LogUtils.e(LOG_TAG, "File not found for file %s", newFilePath); in copyAttachment()351 attachment.contentUri = Uri.parse("file://" + newFilePath); in copyAttachment()361 newFilePath, size, false); in copyAttachment() local369 intent.setData(Uri.parse("file://" + newFilePath)); in copyAttachment()376 LogUtils.e(LOG_TAG, e, "Cannot write to file %s", newFilePath); in copyAttachment()377 new File(newFilePath).delete(); in copyAttachment()
328 public static boolean renameFile(File inputPath, File newFilePath) { in renameFile() argument329 if (newFilePath.exists()) { in renameFile()330 Log.e(TAG, "File path already exists: " + newFilePath.getAbsolutePath()); in renameFile()337 if (!createDirectoryIfNeeded(newFilePath.getAbsolutePath())) { in renameFile()339 newFilePath.getAbsolutePath()); in renameFile()342 return inputPath.renameTo(newFilePath); in renameFile()