Skip to content

清理项目路径包含中文 #16

Description

@Dong4043

如果项目路径中包含中文,则CleanUnusedMethods类中find方法的fullPath这个转fileUrl时,fileUrl会为空。原因是不能对中文编码,我这样处理就可以了。

let data = fullPath.data(using: String.Encoding.utf8)
let fileUrl = URL(dataRepresentation: data!, relativeTo: nil)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions