Skip to content

Commit

Permalink
Issue 48564: update create folder util (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
XingY authored Oct 29, 2023
1 parent 243e62a commit 0123ed8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/SkylineDocImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ private void copyExtractedFilesToCloud(TargetedMSRun run)
try
{
if (!Files.exists(targetParentPath))
Files.createDirectory(targetParentPath);
FileUtil.createDirectory(targetParentPath);

ExpData skydData = run.getSkydDataId() == null ? null : ExperimentService.get().getExpData(run.getSkydDataId());
if (skydData != null)
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/TargetedMSController.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public static void configureRawDataTab(Portal.WebPart webPart, Container c, File
{
try
{
Files.createDirectories(rawFileDir);
FileUtil.createDirectories(rawFileDir);
}
catch (IOException e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/TargetedMSDataHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void runMoved(ExpData newData, Container container, Container targetConta
if (Files.exists(sourceDir) && Files.isDirectory(sourceDir))
{
if (!Files.exists(destDir))
Files.createDirectory(destDir);
FileUtil.createDirectory(destDir);
if (Files.isDirectory(destDir))
{
try (Stream<Path> paths = Files.list(sourceDir))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static Path getChromLibTempFile(Container container, LocalDirectory local
File localDir = localDirectory.getLocalDirectoryFile();
Path chromLibDir = localDir.toPath().resolve(CHROM_LIB_FILE_DIR);
if(!Files.exists(chromLibDir))
Files.createDirectory(chromLibDir);
FileUtil.createDirectory(chromLibDir);
return chromLibDir.resolve(
FileUtil.makeFileNameWithTimestamp(CHROM_LIB_FILE_BASE_NAME+"_"+container.getRowId()+"_rev"+revision,
CHROM_LIB_FILE_EXT));
Expand All @@ -203,7 +203,7 @@ private static Path getChromLibDir(Container container, boolean createLibDir) th
Path chromLibDir = root.getRootNioPath().resolve(CHROM_LIB_FILE_DIR);
if(!Files.exists(chromLibDir) && createLibDir)
{
Files.createDirectory(chromLibDir);
FileUtil.createDirectory(chromLibDir);
}
return chromLibDir;
}
Expand Down

0 comments on commit 0123ed8

Please sign in to comment.