This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java.io.File dir = new java.io.File("<path>"); | |
| for (java.io.File f : dir.listFiles()) { | |
| String name = f.getName(); | |
| File body = new File(); | |
| body.setTitle(name); | |
| body.setMimeType("<mimetype>"); | |
| FileContent mediaContent = new FileContent("<mimetype>", f); | |
| File file = service.files().insert(body, mediaContent).execute(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DbxEntry.WithChildren listing = dbxClient.getMetadataWithChildren("/"); | |
| if (listing.entry instanceof DbxEntry.Folder) { | |
| for (DbxEntry child : listing.children) { | |
| String shareableUrl = dbxClient.createShareableUrl(child.path); | |
| shareableUrl = shareableUrl.replace("www.dropbox.com", "dl.dropboxusercontent.com"); | |
| System.out.println(shareableUrl); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 대시 두 개는 한 줄짜리 주석을 의미합니다. | |
| --[[ | |
| [와 ]를 두 개씩 추가하면 여러 줄 주석이 됩니다. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. 변수와 흐름 제어 | |
| ---------------------------------------------------- |
NewerOlder