diff options
| author | Eyal Posener <[email protected]> | 2019-07-05 17:33:47 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-05 17:33:47 +0300 |
| commit | 2f2ff270a9f6adcef8351b1bdf5319b5d612b53f (patch) | |
| tree | 0dbc83883d33ac239db651f19be3fe67fd3dc361 /args.go | |
| parent | 6ffe496ea9530c0638974624ed9dd429f9ad592e (diff) | |
| parent | 72c5c945f0d5861ba1d4e51a0a5ac36a4bef3868 (diff) | |
Merge pull request #98 from posener/refactor
Some refactorings
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ type Args struct { // Directory gives the directory of the current written // last argument if it represents a file name being written. // in case that it is not, we fall back to the current directory. +// +// Deprecated. func (a Args) Directory() string { if info, err := os.Stat(a.Last); err == nil && info.IsDir() { return fixPathForm(a.Last, a.Last) |
