Skip to content

"Failed to determine if \\server\share exists." logging noise #8

@AMeyerInkSoft

Description

@AMeyerInkSoft

We've been annoyed by this error for a while, but I forgot to fix it when I pushed v3.0.0. Logging an issue here to help me remember to fix it for the next release. The error is basically just noise filling up logs because the code is probably trying to check if a folder exists further up the chain than the first level folder. e.g. the server or share name.

Failed to determine if \\server\share exists.`
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')   
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)   
at System.String.Substring(Int32 startIndex, Int32 length)   
at InkSoft.SmbAbstraction.SmbFile.Exists(String path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions