public class DirectoryInfo extends FileSystemInfo
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.DirectoryInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.DirectoryInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DirectoryInfo() |
DirectoryInfo(java.lang.Object instance)
Internal constructor.
|
DirectoryInfo(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
static DirectoryInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DirectoryInfo, a cast assert is made to check if types are compatible. |
void |
Create() |
void |
Create(DirectorySecurity directorySecurity) |
DirectoryInfo |
CreateSubdirectory(java.lang.String path) |
DirectoryInfo |
CreateSubdirectory(java.lang.String path,
DirectorySecurity directorySecurity) |
void |
Delete() |
void |
Delete(boolean recursive) |
DirectorySecurity |
GetAccessControl() |
DirectorySecurity |
GetAccessControl(AccessControlSections includeSections) |
DirectoryInfo[] |
GetDirectories() |
DirectoryInfo[] |
GetDirectories(java.lang.String searchPattern) |
DirectoryInfo[] |
GetDirectories(java.lang.String searchPattern,
SearchOption searchOption) |
FileInfo[] |
GetFiles() |
FileInfo[] |
GetFiles(java.lang.String searchPattern) |
FileInfo[] |
GetFiles(java.lang.String searchPattern,
SearchOption searchOption) |
FileSystemInfo[] |
GetFileSystemInfos() |
FileSystemInfo[] |
GetFileSystemInfos(java.lang.String searchPattern) |
FileSystemInfo[] |
GetFileSystemInfos(java.lang.String searchPattern,
SearchOption searchOption) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
DirectoryInfo |
getParent() |
DirectoryInfo |
getRoot() |
void |
MoveTo(java.lang.String destDirName) |
void |
SetAccessControl(DirectorySecurity directorySecurity) |
void |
setJCOInstance(JCObject instance) |
getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getName, GetObjectData, Refresh, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtcCreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DirectoryInfo()
throws java.lang.Throwable
java.lang.Throwablepublic DirectoryInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DirectoryInfo(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic static DirectoryInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DirectoryInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDirectoryInfo instancejava.lang.Throwable - in case of error during cast operationpublic void Create()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
OutOfMemoryException,
FormatException,
IOException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionpublic void Create(DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, IOException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionpublic DirectoryInfo CreateSubdirectory(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PathTooLongException, ArgumentOutOfRangeException, NotSupportedException, IOException, InvalidOperationException
public DirectoryInfo CreateSubdirectory(java.lang.String path, DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic void Delete()
throws java.lang.Throwable,
IndexOutOfRangeException,
ArgumentNullException,
FormatException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
Delete in class FileSystemInfojava.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void Delete(boolean recursive)
throws java.lang.Throwable,
IndexOutOfRangeException,
ArgumentNullException,
FormatException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic DirectorySecurity GetAccessControl() throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, IndexOutOfRangeException, NotSupportedException
public DirectorySecurity GetAccessControl(AccessControlSections includeSections) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, IndexOutOfRangeException, NotSupportedException
public DirectoryInfo[] GetDirectories() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic DirectoryInfo[] GetDirectories(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic DirectoryInfo[] GetDirectories(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileInfo[] GetFiles() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileInfo[] GetFiles(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileInfo[] GetFiles(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileSystemInfo[] GetFileSystemInfos() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentExceptionNullReferenceExceptionCultureNotFoundExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionNotSupportedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class FileSystemInfoString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class FileSystemInfoString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class FileSystemInfoObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class FileSystemInfoString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class FileSystemInfoJCType representing the CLR Type of the instantiated Classpublic DirectoryInfo getParent() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, PathTooLongException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionPathTooLongExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic DirectoryInfo getRoot() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CultureNotFoundException, InvalidOperationException, NotSupportedException
public void MoveTo(java.lang.String destDirName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NotSupportedException,
IndexOutOfRangeException,
FormatException,
ArgumentOutOfRangeException,
InvalidOperationException,
IOException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionIOExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void SetAccessControl(DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException, OutOfMemoryException, PrivilegeNotHeldException, InvalidProgramException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionOutOfMemoryExceptionPrivilegeNotHeldExceptionInvalidProgramExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class FileSystemInfo