File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ pub enum ErrorKind {
301
301
/// The limit might be from the underlying filesystem or API, or an administratively imposed
302
302
/// resource limit.
303
303
#[ unstable( feature = "io_error_more" , issue = "86442" ) ]
304
- FilenameTooLong ,
304
+ FilenameInvalid ,
305
305
/// Program argument list too long.
306
306
///
307
307
/// When trying to run an external program, a system or process limit on the size of the
@@ -382,7 +382,7 @@ impl ErrorKind {
382
382
DirectoryNotEmpty => "directory not empty" ,
383
383
ExecutableFileBusy => "executable file busy" ,
384
384
FileTooLarge => "file too large" ,
385
- FilenameTooLong => "filename too long" ,
385
+ FilenameInvalid => "filename too long" ,
386
386
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
387
387
FilesystemQuotaExceeded => "filesystem quota exceeded" ,
388
388
HostUnreachable => "host unreachable" ,
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
159
159
libc:: ENOSPC => StorageFull ,
160
160
libc:: ENOSYS => Unsupported ,
161
161
libc:: EMLINK => TooManyLinks ,
162
- libc:: ENAMETOOLONG => FilenameTooLong ,
162
+ libc:: ENAMETOOLONG => FilenameInvalid ,
163
163
libc:: ENETDOWN => NetworkDown ,
164
164
libc:: ENETUNREACH => NetworkUnreachable ,
165
165
libc:: ENOTCONN => NotConnected ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
104
104
c:: ERROR_POSSIBLE_DEADLOCK => return Deadlock ,
105
105
c:: ERROR_NOT_SAME_DEVICE => return CrossesDevices ,
106
106
c:: ERROR_TOO_MANY_LINKS => return TooManyLinks ,
107
- c:: ERROR_FILENAME_EXCED_RANGE => return FilenameTooLong ,
107
+ c:: ERROR_FILENAME_EXCED_RANGE => return FilenameInvalid ,
108
108
_ => { }
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments