Differences

This shows you the differences between the selected revisions of the page.

library_remotefileinfo 2012-01-11 library_remotefileinfo 2020-12-24 (current)
Line 1: Line 1:
====== RemoteFileInfo Class ====== ====== RemoteFileInfo Class ======
-Represents data about remote file.·+Represents data about a remote file.
-&future_feature+~~AD~~
===== Syntax ===== ===== Syntax =====
Namespace: ''WinSCP'' Namespace: ''WinSCP''
-<code csharp>+<code csharp *>
public sealed class RemoteFileInfo public sealed class RemoteFileInfo
 +</code>
 +
 +<code vbnet *>
 +Public NotInheritable Class RemoteFileInfo
</code> </code>
===== Properties ===== ===== Properties =====
^ Name ^ Description ^ ^ Name ^ Description ^
-| bool IsDirectory | Is file a directory? (i.e. ''FileType'' is ''D''). Read-only. | +| [[library_filepermissions|FilePermissions]] ==FilePermissions== | File permissions. Read-only. | 
-| DateTime LastWriteTime | Timestamp of the last file modification. Read-only. | +| char ==FileType== | File type. ''-'' for regular file, ''D'' for directory, ''L'' for symbolic link, etc. Read-only. See also ''IsDirectory''. | 
-| long Length | Size of the file in bytes. Read-only. | +| string ==FullName== | File path. See also ''Name''. Read-only. | 
-| string Name | File name (with ''[[library_session_listdirectory|Session.ListDirectory]]'') or file path (with ''[[library_session_getfileinfo|Session.GetFileInfo]]''). Read-only. | +| string ==Group== | File group. Read-only. | 
-| [[library_filepermissions|FilePermissions]] FilePermissions | File permissions. Read-only. | +| bool ==IsDirectory== | Is file a directory? (i.e. ''FileType'' is ''D''). Read-only. | 
-| char FileType | File type. Space for regular file, ''D'' for directory, ''L'' for symlink, etc. Read-only. See also ''IsDirectory''. |+| bool ==IsParentDirectory== | Is it a reference to a parent directory (''..'')? Read-only. | 
 +| bool ==IsThisDirectory== | Is it a reference to this directory (''.'')? Read-only. | 
 +| DateTime ==LastWriteTime== | Timestamp of the last file modification. Read-only. | 
 +| long ==Length== | Size of the file in bytes. Read-only.
 +| int ==Length32== | An alternative to ''Length''. Particularly useful for COM hosts, that do not support 64-bit integers, such as Visual Basic. Throws ''OverflowException'', when the file size cannot be expressed using 32-bit integer. Read-only. | 
 +| string ==Name== | File name. See also ''FullName''. Read-only. | 
 +| string ==Owner== | File owner. Read-only. |
===== Methods ===== ===== Methods =====
Line 25: Line 35:
===== Remarks ===== ===== Remarks =====
-Instance of the class can be created by the WinSCP assembly only. You can only get an instance of the class by calling ''[[library_session_listdirectory|Session.ListDirectory]]'' or ''[[library_session_getfileinfo|Session.GetFileInfo]]''.+This class can only be instantiated by the WinSCP assembly. To get an instance of the class, call ''[[library_session_listdirectory|Session.ListDirectory]]'' or ''[[library_session_getfileinfo|Session.GetFileInfo]]''
 + 
 +===== Examples ===== 
 +See example for ''[[library_session_listdirectory#example|Session.ListDirectory]]''. 
 + 
 +==== Real-Life Examples ==== 
 + 
 +  * [[library_example_check_existence_timestamp|*]]; 
 +  * [[library_example_listing_files_matching_wildcard|*]]; 
 +  * [[library_example_recursive_search_text|*]]; 
 +  * [[library_example_recursive_download_custom_error_handling|*]]; 
 +  * [[library_example_find_duplicate_files|*]]; 
 +  * [[script_custom_listing_format_csv|*]].
-===== Example ===== 
-See [[library_session_listdirectory#example|example]] for ''[[library_session_listdirectory#example|Session.ListDirectory]]''. 

Last modified: by martin