/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
/** * Indicates if this file represents a <em>file</em> on the underlying * file system. * * @return {@code true} if this file is a file, {@code false} otherwise. */ public boolean isFile() { try { return S_ISREG(Libcore.os.stat(path).st_mode); } catch (ErrnoException errnoException) { // The RI returns false on error. (Even for errors like EACCES or ELOOP.) return false; } }
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();
if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { throw ftruncateException.rethrowAsIOException();