Skip to content

Commit

Permalink
Merge pull request #121 from perryrh0dan/dev
Browse files Browse the repository at this point in the history
fix(init): windows create directory
  • Loading branch information
perryrh0dan authored Feb 9, 2021
2 parents f9ac608 + a8355a5 commit 986fa38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tmpo"
description = "Command line utility to create new workspaces based on predefined templates"
version = "2.2.0"
version = "2.2.1"
authors = ["Thomas Pöhlmann <thomaspoehlmann96@googlemail.com>"]
edition = "2018"
license = "MIT"
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# What's new in Tmpo

## 2.2.1

### Fix

- (windows) fix init error (permission denied, os error 5)

## 2.2.0

### Feature
Expand Down
4 changes: 3 additions & 1 deletion src/action/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ impl Action {
};

// Create parent directories if they dont´t exist
match fs::create_dir_all(&target_dir) {
let mut parent_dir = target_dir.to_owned();
parent_dir.pop();
match fs::create_dir_all(&parent_dir) {
Ok(()) => (),
Err(error) => {
log::error!("{}", error);
Expand Down

0 comments on commit 986fa38

Please sign in to comment.