From feafefb1ed8d86100161f521fc7a44b819bd9529 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Mon, 13 Dec 2010 21:50:09 -0800 Subject: MTP: check for replacing existing files via the database instead of the file system Change-Id: I283dab48f24d2836e48fab8e49764a9cdf13de55 Signed-off-by: Mike Lockwood --- media/mtp/MtpServer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'media/mtp/MtpServer.cpp') diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp index b371e41..236cd0a 100644 --- a/media/mtp/MtpServer.cpp +++ b/media/mtp/MtpServer.cpp @@ -683,10 +683,6 @@ MtpResponseCode MtpServer::doSendObjectInfo() { path += "/"; path += (const char *)name; - // file should not already exist - if (access(path, R_OK) == 0) - return MTP_RESPONSE_GENERAL_ERROR; - // check space first if (mSendObjectFileSize > storage->getFreeSpace()) return MTP_RESPONSE_STORAGE_FULL; -- cgit v1.1