Java Code Examples for com.facebook.internal.Utility#deleteDirectory()

The following examples show how to use com.facebook.internal.Utility#deleteDirectory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeAppCallAttachmentStore.java    From platform-friends-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 2
Source File: NativeAppCallAttachmentStore.java    From Klyph with MIT License 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 3
Source File: NativeAppCallAttachmentStore.java    From barterli_android with Apache License 2.0 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 4
Source File: NativeAppCallAttachmentStore.java    From android-skeleton-project with MIT License 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 5
Source File: NativeAppCallAttachmentStore.java    From FacebookImageShareIntent with MIT License 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 6
Source File: NativeAppCallAttachmentStore.java    From Abelana-Android with Apache License 2.0 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 7
Source File: NativeAppCallAttachmentStore.java    From KlyphMessenger with MIT License 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 8
Source File: NativeAppCallAttachmentStore.java    From facebook-api-android-maven with Apache License 2.0 4 votes vote down vote up
void cleanupAllAttachments(Context context) {
    // Attachments directory may or may not exist; we won't create it if not, since we are just going to delete it.
    File dir = getAttachmentsDirectory(context);
    Utility.deleteDirectory(dir);
}
 
Example 9
Source File: NativeAppCallAttachmentStore.java    From platform-friends-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 10
Source File: NativeAppCallAttachmentStore.java    From Klyph with MIT License 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 11
Source File: NativeAppCallAttachmentStore.java    From barterli_android with Apache License 2.0 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 12
Source File: NativeAppCallAttachmentStore.java    From android-skeleton-project with MIT License 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 13
Source File: NativeAppCallAttachmentStore.java    From FacebookImageShareIntent with MIT License 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 14
Source File: NativeAppCallAttachmentStore.java    From Abelana-Android with Apache License 2.0 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 15
Source File: NativeAppCallAttachmentStore.java    From KlyphMessenger with MIT License 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}
 
Example 16
Source File: NativeAppCallAttachmentStore.java    From facebook-api-android-maven with Apache License 2.0 2 votes vote down vote up
/**
 * Removes any temporary files associated with a particular native app call.
 *
 * @param context the Context the call is being made from
 * @param callId the unique ID of the call
 */
public void cleanupAttachmentsForCall(Context context, UUID callId) {
    File dir = getAttachmentsDirectoryForCall(callId, false);
    Utility.deleteDirectory(dir);
}