Skip to content

Instantly share code, notes, and snippets.

View MkDirAll-test.go
package main
import (
"fmt"
"github.com/syncthing/syncthing/lib/fs"
)
func main() {
base := `F:\`
@imsodin
imsodin / readOneDriveDir.go
Last active Nov 25, 2017 — forked from clee231/readOneDriveDir.go
A quick test to read the OneDrive Folder in the current user's home directory. (Based off of: http://www.golangprograms.com/how-to-read-names-of-all-files-and-folders-in-current-directory.html)
View readOneDriveDir.go
package main
import (
"log"
"os"
"fmt"
"os/user"
)
func readCurrentDir() {
usr, err := user.Current()
if err != nil {
You can’t perform that action at this time.