/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
public void remove(String path) throws ErrnoException { os.remove(path); } public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }
/** * Deletes this file. Directories must be empty before they will be deleted. * * <p>Note that this method does <i>not</i> throw {@code IOException} on failure. * Callers must check the return value. * * @return {@code true} if this file was deleted, {@code false} otherwise. */ public boolean delete() { try { Libcore.os.remove(path); return true; } catch (ErrnoException errnoException) { return false; } }