exception-handling - 优雅地处理不存在的 PWD
问题描述
每当我在不存在的目录中执行水晶程序时,它都会失败并显示Unhandled exception: getcwd: No such file or directory (Errno)
. 我找不到优雅处理这种情况的方法,有可能吗?
解决方案
推荐阅读
- amazon-web-services - AWS 服务角色未经授权,直到在控制台中打开并保存
- javascript - 如果jQuery中的条件为假,如何显示模态?
- sql-server - chilkat - 问题 - sql server - 在内存中下载并解压缩,而不创建任何 zip 文件
- scala - 如何在 Spark 中以集群模式利用所有驱动程序核心?
- visual-studio-code - VS Code 中的相对路径
- typescript - TypeScript:将实例传递给函数时实现不起作用
- javascript - 想要重定向回 index.php
- c# - 如何找到 NotSupportedException 的根本原因?
- sql-server - 在阶段设置主键
- jquery - 为处理 CORS 问题而构建的代理问题